title: Can a singleton class have a non-singleton dependency?
body: <p>I'm wondering how <code>IServiceCollection.AddDbContext()</code> adds my <code>ApplicationDbContext</code>. My guess is that it is <em>not</em> added as a singleton, and that a new instance is created with each request.</p>
  <p>I'm implementing a custom <code>ILoggerProvider</code>, which requires an instance of <code>ApplicationDbContext</code>.</p>
  <p>My question is: what happens if my <code>ILoggerProvider</code> is configured as a singleton, but it has a dependency on an <code>ApplicationDbContext</code> that is not a singleton?</p>