title: Web API Custom Attribute Filter with Ninject Dependency Injection
body: <p>I have a controller named <code>HomeController</code></p>
  
  <pre><code>public class HomeController : ApiController
  {       
      [System.Web.Http.HttpGet]
      public string Index()
      {
         //Some logic
      }
  }
  </code></pre>
  
  <p>And an Attribute class named <code>Logging</code></p>
  
  <pre><code>public class Logging : ActionFilterAttribute
  {
      private readonly IMyInterface myInterface;
      public LogResponse(myInterface value)
      {
          //Add Validation
          myInterface = value;
      }
  
      public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
      {
          // some logic
      }
  }
  </code></pre>
  
  <p>I want to use the binding but I dont know how can I use Ninject here.</p>
  
  <p>In my Ninject file, I tried:</p>
  
  <pre><code>private static void RegisterServices(IKernel kernel)
  {
      kernel.BindHttpFilter&lt;LogResponse&gt;(FilterScope.Controller)
          .WithConstructorArgument("Report", ???) // ?? says some object , but what value ?
  }
  </code></pre>
  
  <p>Could you please help me with Ninject function</p>