ninject-2
Ninject interception extension with WCF gives me an "Object reference not set to an instance of an object." error
I\'m getting started with the Ninject interception extension and can\'t get it to work in my WCF service. With the WCF extension, ninject works fine, it\'s the interception that\'s giving me trouble.[详细]
2023-01-27 12:48 分类:问答Rhino.Security and IEntityInformationExtractor
I\'ve recently downloaded Rhino.Security and I am trying to implement permissions on a entity. Since I like Ninject (v2) I would like to put together a simple example to start with.[详细]
2023-01-26 18:58 分类:问答Having both an InRequestScope and InTransientScope for Ninject resolving to same type
I\'ve got a Ninject setup that creates a JobContext resolver InReq开发者_开发百科uestScope() This works just fine, however, I have a very specific call in the Website that requires me to loop through[详细]
2023-01-25 08:49 分类:问答How does Ninject WCF Extensions TimeService sample work?
I have a .Net 4.0 WCF service that I\'m trying to setup ninject for. I downloaded the WCF extension for ninject and had a look through the TimeService example. Everything looks simple enough, however[详细]
2023-01-22 22:09 分类:问答Ninject inject add an element to collection when I create the collection
I\'m using MVVM light and have set up the binding as following: class TestModule:NinjectModule { public override void Load()[详细]
2023-01-21 21:06 分类:问答Ninject V2 InRequestScope: firing constructor on every request
I\'m having a hard time with Ninject V2\'s InRequestScope() for managing a UnitOfWork. _kernel.Bind<UnitOfWork>().To<SqlUnitOfWork>().InRequestScope();[详细]
2023-01-19 22:35 分类:问答How to use Ninject2 with WCF?
In a short view of the IoC and DI .NET libraries I chose to use Ninject2. According to DDD style in: Infrastructure: I have Entity Framework 4.0 .edmx model and the Repository implementation[详细]
2023-01-18 10:37 分类:问答How do I use Common Service Locator in Ninject 2
C开发者_C百科hanges in Ninject 2 say that Ninject support Common Service Locator, but how do I use it? I don\'t find any manual or sample.The Ninject2 download contains a CommonServiceLocator.NinjectA[详细]
2023-01-16 16:33 分类:问答Ninject 2.0: Passing different parameters depending on implementation
I have just started to work with Ninject 2.0 with ASP.NET MVC 2. So, I have an interface IMongoRepository and class MongoRepository.[详细]
2023-01-15 02:41 分类:问答Dependency Inject with Ninject 2.0
A little question regarding Ninject. I use a WCF \'duplex channel\' to communicate with a service. The channel is defined as an interface, lets call it IMyChannel for simplicity. To instantiate a cha[详细]
2023-01-14 23:15 分类:问答