title: How to register DI services for specific Interface type?
body: <p>I have <code>interface IServiceHandlerAsync&lt;T&gt;</code> and I have following service registrations</p>
  
  <pre><code>services.AddScoped&lt;SoftwareTestService&gt;();
  services.AddScoped&lt;SoftwareTestCaseService&gt;();
  services.AddScoped&lt;SoftwareTestCaseStepService&gt;();
  services.AddScoped&lt;SoftwareTestCaseStepResultService&gt;();
  </code></pre>
  
  <p>where each of these services are inherited from <code>interface IServiceHandlerAsync&lt;T&gt;</code></p>
  
  <p>is it possible to resolve and register aforamentioned services without specifying every service explicitely by using interface (I am thinking that reflection may do the work) ?</p>
  
  <p>Algorithmic example would be </p>
  
  <pre><code>foreach (var service in .getResolvedServices&lt;IServiceHandlerAsync&gt;)
  {
      services.AddScoped(service);
  }
  </code></pre>