unity-container
Programatically update a configuration within a container
In my app I ask the user which database they want to connect to and I was writing it back into EL5.0 like this:[详细]
2023-03-21 15:42 分类:问答Unity Interception: How to pass parameter into ICallHandler implementation?
Can I pass message parameter to ICallHandler implementation like this: var logic = container.Resolve<IBussinessLogic>(message);[详细]
2023-03-20 20:10 分类:问答Making WCF OperationContext play nicely with DI and testing
I\'m running a WCF service hosted in a Windows service; dependencies of the WCF service are injected via Unity, which is all good. As a result, the service is also easy to write unit tests for.[详细]
2023-03-20 08:02 分类:问答Unity: Constructor injection with mutiple constructors
I\'m trying to inject an EF ObjectContext using Unity constructor injection. My attemp is to register the type in the bootsprapper like this:[详细]
2023-03-19 19:03 分类:问答Updating an instance registered with Unity container
I am using Unity for dependency injection and have the instance of a class Config that implements IConfig registered with the Unity Container.[详细]
2023-03-19 08:40 分类:问答WCF Self Hosting timeout
I have a Unity based C# WPF application that has a Module that communicates to a WCF based project within the same solution.[详细]
2023-03-19 07:48 分类:问答Where should Unity containers be created and references be resolved?
Let\'s say I have a hash component called with a service contract called IHash.I have a component DLL that needs to use hashing.We are usign Unity to create a loosely coupled system.[详细]
2023-03-19 02:57 分类:问答Unity Not Being Disposed Causing Server Lockup?
We have a server farm of about 40 servers that we roll code to every couple weeks. One thing we noticed when we roll the code live is after deploying the assemblies and performing an IIS reset and put[详细]
2023-03-18 17:11 分类:问答MVVM: Decouple Model from ViewModel
I\'ve just started learning WPF MVVM using Pri开发者_高级运维sm and Unity. Decoupling the view from the viewmodel works pretty well, but I don\'t get how wire up my viewmodel and my model.[详细]
2023-03-18 04:07 分类:问答Setting properties using Unity XML
I want to set the Entity Framework ObjectContext in a repository class - the ObjectContext being a property of the repository.[详细]
2023-03-16 23:46 分类:问答