unity-container
How to declare the Unity InjectionFactory in XML configuration
I\'m in the process of moving our Unity configuration to the web.config file.I\'m stuck on how to migrate the following code config to the xml format:[详细]
2023-03-29 13:10 分类:问答WCF and Unity: Set up InstanceProvider, ServiceBehaviour, -Host, -Factory... Now what?
I have been looking for a way to use Unity for Dependency Injection in my WCF service. I have been trying to understand the code described in these two blogs, which is quite similar:[详细]
2023-03-29 11:18 分类:问答With Unity how do I inject a named dependency into a constructor?
I have the IRespository registered twice (with names) in the following code: // Setup the Client Repository[详细]
2023-03-28 00:32 分类:问答What is an IOC container actually doing for me here?
So I\'ve refactored completely to constructor injection, and now I have a bootstrapper class that looks similar to this:[详细]
2023-03-27 10:23 分类:问答Working with child container in prism with unity extensions
Context I\'m looking for a way to build system using PRISM and unity in a Silverlight application so that I can have a use case controller that manages the navigation and other stuff related to a spe[详细]
2023-03-27 04:22 分类:问答Resolving with rules in Unity?
I have interface IRepository that maps to the class GenericRepository in unity. IOC.Container.RegisterType<IRepository, GenericRepository>();[详细]
2023-03-26 20:48 分类:问答Unity, RegisterType<> and Singleton objects
I am using Unity to instantiate some objects and I\'m finding that no matter what I try, Unity is creating singletons for my objects.[详细]
2023-03-26 20:09 分类:问答Unity constructor parameters, with a twist
I have this type of class hierarchy: public interface IA{} public interface IB{void Foo();} public class A:IA[详细]
2023-03-26 17:28 分类:问答Unity Container error using Prism Modularity and including Unity by source
I keep getting an error when trying to use Prism4 Bootstrapper with Unity referenced by source (include existing projects into the solution). I also get an error building Unity from source and then in[详细]
2023-03-26 11:48 分类:问答Resolve an Interface using Unity 2.1
I have a basic class that is trying to resolve an interface using Unity. IUnityContainer containter = new UnityContainer();[详细]
2023-03-26 04:16 分类:问答