frobnicate
✅ Help Regarding async Method Implementation.
foreach
isn't async.
You can do something like:
Or you can use Parallel.Foreach
https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/how-to-write-a-simple-parallel-foreach-loop11 replies
How to avoid the Service Locator anti pattern when needing to instantiate multiple of a DI instance?
In practice, when I use the same instance of a HttpClient, to do multiple requests on the API, it will fail.
If I make a HttpClient per request, it works. I'm not sure why
50 replies