Is it possible to use unity like so: container.Register(typeof(IMyType<car>)开发者_如何学运维, typeof(MyType1<car>));
I have not done much IOC but from what I read and the examples I see on the internet it has confused me.
I want to use unity for a polymorphic event aggregation/handling where handlers are registered through the container.
The follows is my code snippet, and I want to deliver the List parameter to my construct. public classMyClass
I seem to have hit a wall here and would appreciate some help from anyone who is able to on this one. I am not exactly sure what the error message below means. I am using the Caching Block of Enterpri
As part of a basic presentation on unity i have created the following console application (kinda lengthy):
I have a custom razor view base class that has a property for a localization dependent service which is injected with Unity via property injection.
Is it possible to reference an assembly from a shared location or the GAC with Unity? Assume I have two projects (under the same solution):
Newbie Microsoft Unity question. How do I specify the config to initialize a simple string type. I\'m thinking of the below... but it doesn\'t like the char[] paramater in the constructor.
What i want Unity 2.0 to do is to instantiate what i need by getting the new properties from the configurations all the time, a bit hard to explain.