kernel.BindFilter(FilterScope.Controller, 0) .WhenActionMethodHas ();
kernel.BindFilterThis code example binds a custom implementation of the IActionFilter interface to a controller only when the controller is decorated with the MyControllerAttribute. The package library for this method is Ninject.(FilterScope.Controller, 0) .WhenControllerHas ();