title: Why can't you use dependency injection with an httphandler?
body: <p>I have an httphandler like this:</p>
  <pre><code>public class MyProxy : IHttpHandler
  {
      public MyProxy() { }
  
      public void ProcessRequest(HttpContext context)
      {
          //do something
      }
  }
  </code></pre>
  <p>I want to be able to inject a service (KeyVaultService) so I can move some app settings that are sitting in the web.config to the key vault. However, when I inject the KeyVaultService the MyProxy is no longer hit. I'm assuming this is how httpHandlers work, so why is this and is there some way round this (both generally and specifically for a KeyVaultService)? For this case could I create SecretClient?</p>