title: Do I use a JoinableTaskFactory with AspNetCore?
body: <p>I've imported <a href="https://www.nuget.org/packages/Microsoft.VisualStudio.Threading/" rel="noreferrer">Microsoft.VisualStudio.Threading</a> into .Net Core Web App. I did this specifically to make use of <a href="https://github.com/Microsoft/vs-threading/blob/master/src/Microsoft.VisualStudio.Threading/AsyncLazy.cs" rel="noreferrer"><code>AsyncLazy&lt;T&gt;</code></a>.</p>
  
  <p>I wanted to make sure I did this right, so I imported the appropriate <a href="https://github.com/Microsoft/vs-threading/blob/master/doc/analyzers/index.md" rel="noreferrer">Analyzers</a>.</p>
  
  <p>The warnings and the documentation clearly state that a <a href="https://github.com/Microsoft/vs-threading/blob/master/doc/library_with_jtf.md" rel="noreferrer"><code>JoinableTaskFactory</code></a> should be injected into my implementation.</p>
  
  <p>My question is, how should I instantiate that <code>JoinableTaskFactory</code> in the configuration of my .Net Core Web App?</p>
  
  <p>Is it as simple as </p>
  
  <pre><code>public void ConfigureServices(IServiceCollection services)
  {
      // ...
          services.AddSingleton(new JoinableTaskFactory());
      // ...
  }
  </code></pre>
  
  <p>or, is that all wrong?</p>