Omar
Omar

Reputation: 40182

Ninject and Custom Controller Factory

I'm using MEF with ASP.NET MVC as demonstrated at http://blog.maartenballiauw.be/post/2009/06/17/Revised-ASPNET-MVC-and-the-Managed-Extensibility-Framework-(MEF).aspx.

When I try to use Ninject, it seems that nothing gets injected. I did some debugging, and when I reverted to the original controller factory the injection worked.

What needs to be changed, or what does Ninject need in terms of controller factories for it to work?

Upvotes: 0

Views: 2071

Answers (1)

ten5peed
ten5peed

Reputation: 15890

Check out Nate Kohari's Ninject.Web.MVC project on GitHub. It's makes Ninject integration with ASP.NET MVC projects extremely easy.

Upvotes: 3

Related Questions