using (var httpClient = new HttpClient())
{
MultipartFormDataContent formData = new MultipartFormDataContent
{
{ new StreamContent(file.OpenReadStream()), "file", file.FileName }
};
_ = httpClient.PostAsync("azure http function url here", formData);
}
This is the code I’m working on, it is not waiting for the response to complete now. But the problem is, the request never arrives at the azure function url. If I await it, it does receives request.
Reason behind I don’t want to wait for it’s request is because azure http function takes times to complete and I don’t want to wait for it to complete.
Something like queue trigger but I need to send file (blob storage is out of requirement so not using Queue trigger)