I am attempting to use ninjects contextual binding functionality to bind to the correct implementation of an interface based on the value of an enum parameter passed into a method, and I\'m stuck. I t
I have a factory that looks like below: public IFoo GetFoo(IFile file开发者_Go百科) { return _kernel.Get<IFoo>(new ConstructorArgument(\"file\", file));
So we\'re working on converting some projects at work from Ninject to Autofac, and we\'ve stumbled on something really neat within Ninject that we can\'t figure out how to do in Autofac.In our applica
I have a repository like this: public class Repository<T> : IRepository<T> where T : class
Is it right at all to \"wrap\" a StandardKernel with the required NinjectModules in a static class in a separate, share开发者_运维知识库d library, and use that same library whenever injection is neede
Ok, let me break down what I have been trying to do : First of all here is the abstract generic repository of mine :
I have some controllers in an external assembly, such as: namespace SomeExternalAssembly.Controllers { public class SomeExternalController : Controller
I am using the Microsoft.Practices.ServiceLocation assembly in conjunction with ninject to aid in service loaction. I register my ninject kernel into the servicelocator provider method:
I am using Ninject as my MVC contr开发者_高级运维oller factory, but I also load in certain routes and controllers via MEF, these controllers need to be able to register themselves with Ninject:
I have got quite a complex project on the go at the moment, and as part of this I have a MEF layer which purely handles loading of plugins and then the newly loaded plugins expose their routes which a