title: .Net Core Dependency Injection inject out of constructor
body: <p>I need to inject out of constructor, everything I declared in Setup.</p>
  
  <p>Ho can I do it ? How can I inject services out of constructor ? 
  Something like Injector service in Angular 2.</p>
  
  <p><strong>INJECT SERVICES WITHOUT CONSTRUCTOR IN CONTROLLERS</strong></p>
  
  <p>something like this  </p>
  
  <pre><code>    public class ControllerBase : Controller
      {
          protected IRepository&lt;Test&gt; _test;
          protected IRepository&lt;Test1&gt; _test1;
          protected IRepository&lt;Test2&gt; _test2;
  
          public ControllerBase(INJECTOR injector)
          {
              _test = injector.inject(IRepository&lt;Test&gt;);
              _test1 = injector.inject(IRepository&lt;Test1&gt;);
              _test2 = injector.inject(IRepository&lt;Test2&gt;);
          }
      }
  
      public class SomeController : ControllerBase
      {
          public SomeController(INJECTOR injector)
              : base(injector)
          {
  
          }
      }
  </code></pre>
  
  <p><strong>THANKS FOR ANSWER @Rick van den Bosch</strong></p>
  
  <p><strong>FOR THOSE WHO STILL CAN'T GET WHAT I WANTED:</strong></p>
  
  <pre><code>public class ControllerBase : Controller
  {
      protected IRepository&lt;Test&gt; _test;
      protected IRepository&lt;Test1&gt; _test1;
      protected IRepository&lt;Test2&gt; _test2;
  
      public ControllerBase(IServiceProvider injector)
      {
          _test = injector.GetService&lt;IRepository&lt;Test&gt;&gt;();
          _test1 = injector.GetService&lt;IRepository&lt;Test1&gt;&gt;();
          _test2 = injector.GetService&lt;IRepository&lt;Test2&gt;&gt;();
      }
  }
  
  public class SomeController : ControllerBase
  {
      public SomeController(IServiceProvider injector)
          : base(injector)
      {
          //HERE I HAVE ALL 3 REPO NOW WITHOUT EXTRA LINES
      }
  }
  public class SomeController1 : ControllerBase
  {
      public SomeController1(IServiceProvider injector)
          : base(injector)
      {
          //HERE I HAVE ALL 3 REPO NOW WITHOUT EXTRA LINES
      }
  }
  </code></pre>