title: DependencyInjection: Initialize class, before it is called (required)?
body: <p>First of all, I'm using Microsoft's dependency injection package. (ServiceProvider, ServiceCollection) which is going pretty well so far, except for this issue.</p>
  
  <p>I have classes, which I register to my DI like this</p>
  
  <pre><code>this.AddSingleton&lt;IAppWorker, AppWorker&gt;();
  this.AddSingleton&lt;IAppController, AppController&gt;();
  </code></pre>
  
  <p>These classes never get accessed, but they call a method inside their constructors. Do I really need to explicitly resolve the class, and call the method outside of the constructor?</p>
  
  <p>Or is there a way to make it just initialize a new instance, and store it for when I need to resolve it? I'm pretty new to this and its hard to know what to even search for.</p>
  
  <p>Is there a special name for this? Or is it just not possible.</p>