A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
Hello,
Welcome to our Microsoft Q&A platform!
Will i have any problem? Or httpclient will handle both requests fine?
No, you can use one HttpClent to 'GET' request several at the same time.
Here is an article from Henrik F. Nielsen about HttpClient where he says:
A single HttpClient can be used to send as many HTTP requests as you want concurrently so in many scenarios you can just create one HttpClient and then use that for >all your requests."
And since .NET 4.5 The following instance methods are thread safe, please refer to the following thread.
https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=net-5.0#remarks
CancelPendingRequests
DeleteAsync
GetAsync
GetByteArrayAsync
GetStreamAsync
GetStringAsync
PostAsync
PutAsync
SendAsync
PatchAsync
Best Regards,
Leon Lu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.