title: Ninject Not working in ashx
body: <p>Ninject implementation works perfectly in WebForms. But due to some reasons it does not work in ashx. </p>
  
  <p><strong>My Code is below.</strong></p>
  
  <pre><code>public class AllPlayers : HttpTaskAsyncHandler
  {
      [Inject]
      public IUser _user { get; set; }
      public AllPlayers(IUser user)
      {
          _user = user;
      }
      public AllPlayers()
      {
  
      }
      public override async Task ProcessRequestAsync(HttpContext context)
      {
          var data = await _user.GetAllPlayers();
      }
  
      public bool IsReusable
      {
          get
          {
              return false;
          }
      }
  }
  </code></pre>
  
  <p><strong>Am I missing something ?</strong></p>