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.

What is Component-Driven Development?

Component-Driven Development term is starting to get used widely, esp. in connection with Inversion of Control. What is it? What …

inversion-of-control components ioc-container paradigms
IoC (Ninject) and Factories

If I have the following code: public class RobotNavigationService : IRobotNavigationService { public RobotNavigationService(IRobotFactory robotFactory) { //... } } public class RobotFactory : IRobotFactory { public IRobot …

c# .net inversion-of-control ninject ioc-container
Ninject - binding constructors with arguments / Entity Framework connection string

Please forgive my ignorance, but I am very new to IOC and NinJect. I have searched for high and low …

asp.net-mvc ioc-container ninject
Which Dependency Injection Tool Should I Use?

I am thinking about using Microsoft Unity for my Dependency Injection tool in our User Interface. Our Middle Tier already …

.net dependency-injection inversion-of-control castle-windsor ioc-container
In Autofac how do I change the instance that is registered after Build has been called?

So lets say i have this code var builder = new ContainerBuilder(); builder.RegisterInstance(new MyType()); var container = builder.Build(); Then …

.net dependency-injection ioc-container autofac
How to use Repository Interface that uses Generics with Dependency Injection?

I am attempting to use the following Generic Repository Interface for DI and constructor injection: public interface IRepository<TEntity&…

c# dependency-injection unity-container ioc-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
How to use Windsor IoC in ASP.net Core 2

How can I use Castle Windsor as an IOC instead of the default .net core IOC container? I have built …

c# dependency-injection asp.net-core-2.0 castle-windsor ioc-container
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
Getting unity to resolve multiple instances of the same type

I want to do a simple resolve of multiple type registrations (ultimately constructor injected, but using .Resolve to see if …

c# unity-container ioc-container