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.

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
Proper way to inject parent class dependencies with Spring annotations

I have following code - Dao.java @Component public class Dao extends NamedParameterJdbcDaoSupport { } dbContext.xml <bean id="dataSource" class="…

java spring inversion-of-control spring-ioc
Simple Injector vs Hiro vs Autofac

I'm new to DI and IoC and I'm trying to decide which IoC container to learn. I've seen several performance …

.net dependency-injection inversion-of-control autofac simple-injector
Asp.Net Core: register implementation with multiple interfaces and lifestyle Singleton

Considering the following interface and class definitions: public interface IInterface1 { } public interface IInterface2 { } public class MyClass : IInterface1, IInterface2 { } is there …

c# dependency-injection asp.net-core inversion-of-control
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
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
Unity: Register and resolve class with generic type

I'm using Unity and try to follow to SOLID-principles as far as possible. Therefore all implementations only have dependencies to …

c# inversion-of-control unity-container factory-pattern
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
Castle.Windsor lifestyle depending on context?

I have a web application where many components are registered using .LifestylePerWebRequest(), now I've decided to implement Quartz.NET, a .…

c# asp.net-mvc-3 inversion-of-control castle-windsor quartz.net