unity-container
How do I pass the UnityContainer as a parameter to a registration in a Unity IOC xml configuration file
I have an implementa开发者_StackOverflow中文版tion of a factory interface that uses an IOC container to create it\'s objects.[详细]
2023-03-26 03:09 分类:问答Creating new instances while still using Dependency Injection
A quick description of the environment: I have a class that represents a chatroom and has a dependency on a logger. It\'s not the same as a system-wide logger with cross-cutting concerns, but a logge[详细]
2023-03-25 21:04 分类:问答Repositories, UnitOfWork and Unity
Using Unity when I \'new up\' an object that requires dependencies i.e. Repositories, UnitOfWork all is great, my new object gets the dependencies injected and the \'newed\' up object has control over[详细]
2023-03-25 15:20 分类:问答How do you use multiple typeConfigs in Unity?
In unity, when configuring a type, you can specify more than o开发者_JAVA百科ne typeConfig if uniquely named like so:[详细]
2023-03-25 03:40 分类:问答How to configure an object and override that configuration
I have the following interfaces and classes: public interface ILoggingService { ... } public class LoggingService {[详细]
2023-03-24 15:38 分类:问答Ent Lib Unity when to use
i\'ve been trying to getmy head around on EntLib 5.1 Unity and it\'s confusing me a lot http://msdn.microsoft.com/en-us/library/ff660864%28v=PandP.20%29.aspx.[详细]
2023-03-24 05:26 分类:问答How to Inject Log4Net ILog implementations using Unity 2.0
Ultimately this has to do with setting up log4Net but generically the problem is not logging specific.[详细]
2023-03-23 20:03 分类:问答ASP MVC DependencyResolver with UnityContainer for Unit testing
I\'m building an ASP MVC 3 application in which I use Unity as IOC container and I register it on the DependencyResolver.In my controller I can then do this:[详细]
2023-03-23 17:14 分类:问答Is there any circumstance when Unity creates an object instance during setup?
When I use RegisterInstance, there\'s obviously an instance creat开发者_开发百科ed, but by my code.[详细]
2023-03-23 12:15 分类:问答Unity Interception and WCF RIA Domain Services
Can anyone tell me if it is possible to use Unity Interception on a RIA Domain Service and if so how it can be done.[详细]
2023-03-22 09:34 分类:问答
加载中,请稍侯......