I have a ViewModel class which I want to resolve via the unity ServiceLocator, but my viewModel requires a parameter to the constructor. The parameter\'s type is one of the entities in my application
I have a hierarchical category list with Category obj开发者_运维技巧ects public class Category {
I am trying to make use of Unity Framework with Entity Framework. Let me explain the scenario. Let\'s say I have a Database with 5 tables. I will have 5 interfaces each of them corresponding to one ta
I want to resolve the same object from different threads. But when I dispose (teardown) an object in one thread and resolve it in another thread, I get two different objects, although the object needs
I am developing an application that exposes a WCF service using the Message/Response pattern for service methods.The application is using Unity 2.0 for dependency injection and the Validation Applicat
I have this class : public class Repo { public Repo() : this(ConfigurationManager.AppSettings[\"identity\"],ConfigurationManager.AppSettings[\"password\"])
Note 1: I want to make this clear: I am not trying to lazy load dependencies or inject lazy types. Most (all?) IoC containers require metadata to be registered with the container to describe how some
I might be trying to \"mis-use\" Unity here, but what I\'d like is for Unity to create a new class not based on an interface that the newe\'d up class implements, but based on a different class.
I have Unity 2.0 working well within the App.xaml.cs to register and resolve within that class. The question I have is regarding a best practice.
How can I configure a dictionary via XML with Unity container? This works: <register type=\"System.Collections.Generic.Dictionary[string,int]\" >