Top "Inversion-of-control" questions

Inversion of control (IoC) is an abstract principle describing an aspect of some software architecture designs in which the flow of control of a system is inverted in comparison to procedural programming.

Unity - Inject different classes for the same interface

I have one interface: IFoo Two classes implementing that interface: FooOne and FooTwo And two classes ClassOne and ClassTwo receiving …

c# inversion-of-control unity-container
IoC.Resolve vs Constructor Injection

I heard a lot of people saying that it is a bad practice to use IoC.Resolve(), but I never …

.net inversion-of-control ioc-container
Registering a type with multiple constructors and string dependency in Simple Injector

I'm trying to figure out how to use Simple Injector, I've used it around the project with no problems registering …

c# dependency-injection inversion-of-control simple-injector constructor-injection
MEF vs. any IoC

Looking at Microsoft's Managed Extensibility Framework (MEF) and various IoC containers (such as Unity), I am failing to see when …

inversion-of-control unity-container mef
MEF (Managed Extensibility Framework) vs IoC/DI

What problems does MEF (Managed Extensibility Framework) solves that cannot be solved by existing IoC/DI containers?

dependency-injection inversion-of-control mef
Design - Where should objects be registered when using Windsor

I will have the following components in my application DataAccess DataAccess.Test Business Business.Test Application I was hoping to …

c# inversion-of-control castle-windsor
Castle Windsor - IoC registration for open generic interfaces?

Does Castle Windsor permit registration of an open generic interface or do I need to register each possible typed instance …

c# .net inversion-of-control castle-windsor ioc-container
Correct use of Autofac in C# console application

I'm new using Autofac so my apologies for the noob question. I read every manual in Internet explaining the basics …

c# dependency-injection inversion-of-control autofac
Castle Windsor passing constructor parameters

I have an IAddress class with a few properties. I then have a concrete type that implements this interface. This …

dependency-injection inversion-of-control castle-windsor ioc-container
Unity 2.0 and handling IDisposable types (especially with PerThreadLifetimeManager)

I know that similar question was asked several times (for example: here, here,here and here) but it was for …

c# .net inversion-of-control unity-container idisposable