Quantcast
Channel: Single instance of reusable HttpClient - Code Review Stack Exchange
Viewing all articles
Browse latest Browse all 3

Answer by Moisés Alexander Salazar Vila for Single instance of reusable HttpClient

$
0
0

I suggest

private HttpClient Client { get { return _Client  = _Client ?? GetNewClient(); } }

Instead of

private HttpClient Client { get { return _Client ?? GetNewClient(); } }

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>