Top "Unity-container" questions

The Unity Application Block (i.e. Unity) is a lightweight, extensible dependency injection container for .NET with support for interception.

Prism v4: Unity or MEF?

I downloaded Prism v4 and ran the installer. I went into the directory and ran the two following batch files: …

wpf mvvm unity-container mef prism-4
Getting Started with Unity Framework

Could anyone recommend some good resources for getting started with the Unity framework? I've downloaded the source from Codeplex and …

inversion-of-control unity-container codeplex
Type name could not be resolved. Please check config file

Trying to unit test my application using moq and unity, and I'm getting errors where my service is an interface …

unit-testing unity-container moq unity2.0
Strategy Pattern and Dependency Injection using Unity

I am finally getting my feet wet with Dependency Injection (long overdue); I got started playing with Unity and run …

c# dependency-injection unity-container ioc-container strategy-pattern
Unity auto-factory with params

I'm trying to figure out the correct way to inject an auto-factory which takes params, or even if this is …

c# unity-container
Auto-register all interfaces with Unity

Using Unity, I'd like to automatically register all interface/class combinations in an assembly based on the following convention: INameOfObject &…

c# .net inversion-of-control unity-container
Unity Inject dependencies into MVC filter class with parameters

I'm using Unity.MVC4 dependency injection for accessing my services. Everything works as it should when injecting into my Controller …

asp.net-mvc asp.net-mvc-4 dependency-injection unity-container action-filter
Way to fill collection with Unity

I have two example classes class ClassToResolve { private List<CollectionItem> _coll; public ClassToResolve(List<CollectionItem> coll) { _…

c# .net dependency-injection inversion-of-control unity-container
C# unity interception by attribute

Is there a way on how to use interception by attribute in C# unity and keep the object registration code …

c# unity-container interception
PerRequestLifetimeManager can only be used in the context of an HTTP request

I have a MVC application that uses Unity as its IoC container and have multiple services defined in my application …

c# unity-container asp.net-mvc-5.2