From this answer to the question: Do HttpClient and HttpClientHandler have to be disposed?, I see that the best practice is not to dispose a System.Net.Http.HttpClient
per HTTP request. In particular, it is stated that:
standard usage of HttpClient is not to dispose of it after every request.
And that is fine.
My question is, does this "pattern" apply to Windows.Web.Http.HttpClient
as well? Or should it be disposed per HTTP request? I think the documentation is a bit vague on this. In one of the samples, it simply states:
// Once your app is done using the HttpClient object call dispose to
// free up system resources (the underlying socket and memory used for the object)
httpclient.Dispose();
I believe this can be read both ways, so any specific input on this is appreciated.