In an event that is called synchronously, so I can't use await (so no
IHttpClientFactory), what is the correct way to read the contents of a file.
I am using the following, and it works. But the compiler is telling me I should not use
And to repeat, I have no choice in the matter - this cannot be an async method.
public byte? GetContent(IBlobService blobService, string blobUrl)
using (var client = new WebClient())