title: How do I inject all implementations for a given service?
body: <p>How do I inject a list of all of the registered implementations for a given service interface?</p>
  <pre><code>  public class Thing
    {
        public Thing(IList&lt;IService&gt; services) { }
    }
  
    public class ServiceA : IService { }
    public class ServiceB : IService { }
    public class ServiceB : IService { }
  </code></pre>
  <p>Given registrations like this:</p>
  <pre><code>  public class Startup 
    {  
        public void ConfigureServices(IServiceCollection services)
        {
            services
                .AddTransient&lt;IService, ServiceA&gt;()
                .AddTransient&lt;IService, ServiceB&gt;()
                .AddTransient&lt;IService, ServiceC&gt;();
        }
    }
  </code></pre>