Should RestClient of Restsharp be singleton and never disposed?

46 views Asked by At

Restsharp documentation states "RestSharp is a wrapper around HttpClient".

Now, as it states in Do HttpClient and HttpClientHandler have to be disposed between requests? "the general consensus is that you do not (should not) need to dispose of HttpClient."

So is it right that the Restclient should be singleton and never disposed, so it can live through the whole app life?

Just want the right approach in that case.

0

There are 0 answers