title: Autofac - SingleInstance HttpClient
body: <p>Have read in various places that HttpClient should be reused rather than a new instance every time.</p>
  
  <p><a href="https://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/" rel="noreferrer">https://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/</a></p>
  
  <p>I am using Autofac on a project.</p>
  
  <p>Would this be a good way of making a single instance of HttpClient available to to inject into services?</p>
  
  <pre><code>builder.Register(c =&gt; new HttpClient()).As&lt;HttpClient&gt;().SingleInstance();
  </code></pre>
  
  <p>Seems to work :)</p>