unity-framework

How can a static class be resolved by the Unity Framework?

I wold like the unity framework to resolve a static class "MyStaticObject" specified in my config file. As my class is static, I am getting an error "The type StaticObject does not have an accessible constructor." My config file looks as below: <unity> <typeAliases> <typeAlias alias="singleton" type="Microsoft.Practices.Uni...

Forwarded Types in Microsoft Unity

How to use single component for multiple services in Unity Framework? In Windsor it is configured in the following way: var container = new WindsorContainer(); container.Register(Component.For<Service1, Service2>() .ImplementedBy<Component>()); var service1 = container.Resolve<Service1>(); var service2 = co...