title: Create scope factory in asp.net core
body: <p>I want to create scoped container in asp.net core and use it in 2 methods of my singleton method.</p>
  <p>I've tried create this in each method of sigleton. it works, but i think it is overhead.</p>
  <pre><code>var scopeFactory = _serviceProvider.GetService&lt;IServiceScopeFactory&gt;();
  var scope = scopeFactory.CreateScope();
  var scopedContainer = scope.ServiceProvider;
  </code></pre>
  <p>I write it in each method when i need it. I think it is logic mistake. Please, explain me how to do it correct? thank you</p>