title: ASP.NET Core Expose Config to DI Injected Service
body: <p>I have a ASP.NET Core WebAPI project and I am trying to add configuration to my <code>IEmailService</code>that I am injecting through DI like this:</p>
  
  <pre><code>services.AddTransient&lt;IEmailSender, AuthMessageSender&gt;();
  </code></pre>
  
  <p>How can instances of <code>AuthMessageSender</code> get to settings in the config file?</p>