Top "Unity-container" questions

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

MVVM, Unity, Prism, MEF, Caliburn - What should I use?

Please help - I'm getting lost! I'm writing a small desktop application which has some controls and some screen. This …

prism unity-container mef mvvm-light caliburn.micro
The type 'IUnityContainer' is defined in an assembly that is not referenced

I just upgraded my ASP.NET MVC/WebApi project from Microsoft.Practices.Unity 3.5.1404 to 3.5.1406 (via nuget, just released). Afterwards, I'm …

c# asp.net unity-container
Unity with ASP.NET Core and MVC6 (Core)

Update 09.08.2018 Unity is being developed here but I haven't had the time to test how it plays with the ASP.…

c# asp.net-core-mvc unity-container
Unity IoC does not inject dependency into Web API Controller

I'm very new to using Unity, but my problem is that whenever I call my web service, I get an …

c# unity-container asp.net-web-api
Setter / property injection in Unity without attributes

I am working on a project where the Unity framework is used as the IoC container. My question relates to …

.net inversion-of-control unity-container
Unity InjectionConstructor for multiparam constructor overriding only single one

I have a class with constructor like this: public class Bar { public Bar(IFoo foo, IFoo2 foo2, IFoo3 foo3, IFooN …

c# unity-container
How to create objects using a static factory method?

I know Unity can be configured to use a class' constructor to create an instance of a class (like below) …

c# unity-container
How to configure unity container to provide string constructor value?

This is my dad class public class Dad { public string Name { get;set; } public Dad(string name) { Name = name; } } This …

c# visual-studio-2010 dependency-injection inversion-of-control unity-container
Disposing needed in Unity?

Probably a Unity beginner's question: when using Unity, would you still need to implement Dispose methods on the objects you …

unity-container dispose