I'm currently using ninject.mvc3 in my asp.net webapi project, and it works fine. I am now trying to bind filter attributes, but BindFilter
and BindHttpFilter
are missing from IKernel
interface when using the NinjectWebCommon
static class method. If I add the Ninject.Web.WebApi
package, its there but the project does not run (problem here, solution said that Ninject.Web.WebApi
is deprecated) so I removed it back.
I also followed this github wiki exactly and still this.BindFilter
was not found. I have the latest nuget packages; Ninject (3.0.1.10), Ninject.Web.Common (3.0.0.7), Ninject.MVC3 (3.0.0.6)
Where Is BindFilter or BindHttpFilter? Did something change? How do I bind filter attributes in asp.net web api? There are so many libraries and projects and the docs don't tell you what is the current working one and what is deprecated....