ninject-2
Can't figure out how to get this DI stuff going
Ok, I feel like a total idiot. I have read the docs and still cant get this working with Ninject. public class ContextAdapter:IDbSetProvider[详细]
2023-02-23 07:47 分类:问答Inject attribute doesn't work for field
Inject attribute is not working for field. [Inject] public MyContext context; //Not injected [Inject] public MyContext context {get; set;} //Injected[详细]
2023-02-21 15:39 分类:问答How to keep IoC container in one place, while inner classes need to create dependencies after beeing constructed
I started to use Ninject , on this relatively small project and i have run into a problem: i have this class[详细]
2023-02-21 10:43 分类:问答Ninject how to check a binding for a given type is available without creating an instance
So I m just trying to test my modules, normally i would go and create a Kernel with the given module and then try to get an instance, however t开发者_开发问答his scenario involves a few modules and it[详细]
2023-02-20 21:26 分类:问答Creating a bootstrapper in ASP.NET MVC 3 using Ninject and DependencyResolver
I am attempting to create a simple bootstrapper. My boostrapper code looks like: public static void Run()[详细]
2023-02-20 18:00 分类:问答Ninject not creating a new instance with constructor arguments in WCF
Here is the scenario. I have a WCF service, when this service is called it passes control to an instance of another class (created via Ninject). In that class I need to do some work, specifically with[详细]
2023-02-20 13:03 分类:问答Ninject conditional binding based on property value
I am having trouble defining bindings using ninject. I am in a standard ASP.NET WebForms application. I have defined an http handler to Inject dependencies in pages and controls (Property injection).[详细]
2023-02-20 12:07 分类:问答Can someone help me set up Ninject 2 with Log4net?
I\'ve been (happily) using Ninject for a while now with some basic scenarios, and would like to give it contro开发者_开发技巧l of my logging. I noted the existence of the Ninject.Extensions.Logging na[详细]
2023-02-20 10:07 分类:问答Mock object fails to return required object
There is bound to be something obvious I\'m overlooking - there usually is when I have problems like this.[详细]
2023-02-20 04:23 分类:问答ASP.NET MVC 3: DefaultModelBinder with inheritance/polymorphism
First, sorry for the big post (I\'ve tried to do some research first) and for the mix of technologies on the same question (ASP.NET MVC 3, Ninject and MvcContrib).[详细]
2023-02-20 02:14 分类:问答
加载中,请稍侯......