title: Dependency Injection From class Library
body: <p>I am using .Net core 2.0 and implemented Constructor Dependency Injection (DI). Everything working as expected with controller constructor.</p>
  
  <p>For example, If In the class library I want to create an object how can I call it without using constructor. </p>
  
  <pre><code>public interface IAppConfig
  {
       string Test();
  
  }
  
  public class AppConfig : IAppConfig
  {
      public AppConfig(IConfiguration configuration)
      {
  
      }
  
      public string Test()
      {
          return "Done";
      }
  }
  </code></pre>