Top "Ioc-container" questions

In object oriented languages, an inversion of control container (ioc-container) can be used for configuring and managing objects in an application.

Difference between "Inversion of Control", "Dependency inversion" and "Decoupling"

I'm reading theory about dependency inversion and decoupling and I can't see the difference between the two. Dependency inversion talks …

dependency-injection ioc-container decoupling
Ninject + Bind generic repository

I'm trying to Bind a generic IRepository<> interface to my generic Repository<> - however it always …

c# ioc-container ninject
How to use Autofac in a class library project?

I have the following implementation: private INewsRepository newsRepository; public NewsService(INewsRepository newsRepository) { this.newsRepository = newsRepository; } This service is in a …

c# dependency-injection inversion-of-control ioc-container autofac
Code your own IOC Container

Has anyone out there written their own IOC Container in C#? Or do the vast majority of folks use the …

c# inversion-of-control ioc-container
Adding services after container has been built

Is it possible to register a service at run-time, meaning after the ContainerBuilder has been built and the Container has …

ioc-container autofac
Windsor - pulling Transient objects from the container

How can I pull objects from the container that are transient in nature? Do I have to register them with …

.net dependency-injection castle-windsor ioc-container
How to do dependency injection to Action Filter on ASP.NET Web API

I really get stuck on the approach to do dependency injection into action filter of web api. I have an …

c# asp.net-web-api dependency-injection ioc-container asp.net-web-api-filters
How does Unity.Resolve know which constructor to use?

Given a class with several constructors - how can I tell Resolve which constructor to use? Consider the following example …

.net unity-container ioc-container resolve
Register Container Itself Using Autofac

I was wondering is there's any side effect to registering the container within itself IContainer container; ContainerBuilder builder = new ContainerBuilder(); …

c# inversion-of-control autofac ioc-container