ioc-container
Castle Windsor dependency injection: Use the caller type as a parameter
The following class is registered in the Windsor Castle container: namespace MyNamespace { class Foo : IFoo[详细]
2023-02-28 07:08 分类:问答Stability of Ninject.Mvc and Ninject.Wcf extensions
I\'m planning to start using Ninject 2.2 in enterprise-like project after playing with it for some time. Can anyone confirm no issues with these extensions in production use? I especially worry about[详细]
2023-02-28 06:25 分类:问答Is it a good practise to use CommonServiceLocator to inject dependencies into base class?
Currently when I need to inject dependencies into base class, I use the following code: public class BaseClass[详细]
2023-02-27 22:20 分类:问答Whats the status of Prism integration in Autofac?
Integration into Prism was talked about in the 2.1.x time frame, 开发者_如何学Cwe are @ 2.4.x, Prism 4 is out now and the RIStockTrader Example in /contrib is just a default XAML project.[详细]
2023-02-27 11:24 分类:问答Architecturally replace singleton main object with IoC Container
My question is about software architecture in general. Let\'s consider an example: We have a Windows Service application.[详细]
2023-02-27 06:15 分类:问答Simple way to unit test a lazy load property
I\'m somewhat of a newbie in unit testing. Stumbled upon a problem of unit testing a lazy load property and wondering if there is a simple solution to that:[详细]
2023-02-26 07:51 分类:问答Arguments against Inversion of Control containers
Seems like everyone is moving towards IoC containers. I\'ve tried to \"grok\" it for a while, and as much as I don\'t want to be the one driver to go the wrong way on the highway, it still doesn\'t pa[详细]
2023-02-26 05:27 分类:问答Need help understanding how Ninject is getting a Nhibernate SessionFactory instance into a UnitOfWork?
So using some assistance from tutorials I have managed to wire up a Nhibernate session to my repositories and my repositories to my controllers using Ninject.However, there is one peice of the setup t[详细]
2023-02-25 19:22 分类:问答What's the best design for this problem with IoC and Circular Reference
I\'ll try 开发者_StackOverflow中文版to explain in the simple way. I have a solution (c# 4.0) that contain 4 projects[详细]
2023-02-25 13:32 分类:问答Spring bean is not injected into JSF managed bean (which is an abstract superclass)
I have an abstract super class bean called FooBean and all of my other beans extend this class. I have wired up my dao in applicationContext files and I want to inject it into this superclass bean so[详细]
2023-02-25 03:35 分类:问答
加载中,请稍侯......