title: HttpClient gets disposed w/Azure Functions Dependency Injection
body: <p>When you add HttpClient using DI in Azure Functions it seems that anything that has a dependency on it must be a singleton, or the HttpClient will get disposed once the lifetime of the dependent class ends.</p>
  
  <p>I'm adding HttpClient w/default settings:</p>
  
  <pre><code>builder.Services.AddHttpClient();
  </code></pre>
  
  <p>Here's the error I see in the logs when I attempt to re-run the function:</p>
  
  <pre><code>Cannot access a disposed object.
  Object name: 'System.Net.Http.HttpClient'.
  </code></pre>
  
  <p>Can anyone confirm? If so, is this expected behavior?</p>