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.

Is there a pattern for initializing objects created via a DI container

I am trying to get Unity to manage the creation of my objects and I want to have some initialization …

dependency-injection inversion-of-control unity-container ioc-container interface-design
How to avoid Dependency Injection constructor madness?

I find that my constructors are starting to look like this: public MyClass(Container con, SomeClass1 obj1, SomeClass2, obj2.... ) with …

c# java dependency-injection inversion-of-control ioc-container
What is Castle Windsor, and why should I care?

I'm a long-time Windows developer, having cut my teeth on win32 and early COM. I've been working with .NET since 2001, …

c# dependency-injection inversion-of-control castle-windsor
Generic Type in constructor

I have a Generic Type Interface and want a constructor of an object to take in the Generic Interface. Like: …

c# .net generics inversion-of-control
Could not load file or assembly System.Web.WebPages.Razor, , Version=3.0.0.0 or one of its dependencies

I am using MVC 5, WCF and Unity framework in my application. I am getting below error when I run WCF …

asp.net-mvc wcf inversion-of-control unity-container
Enterprise Library Unity vs Other IoC Containers

What's pros and cons of using Enterprise Library Unity vs other IoC containers (Windsor, Spring.Net, Autofac ..)?

c# .net inversion-of-control unity-container enterprise-library
Examples of IoC Containers

Does anyone have good examples of IoC containers (preferably in c#) and how and why to use them ? I have …

c# inversion-of-control
How to Resolve Instance Inside ConfigureServices in ASP.NET Core

Is it possible to resolve an instance of IOptions<AppSettings> from the ConfigureServices method in Startup? Normally you …

c# asp.net-core inversion-of-control asp.net-core-mvc
Defining the same Spring bean twice with same name

Is having two definition for a bean (with same name and class) valid in Spring IOC ? I am having two …

spring inversion-of-control javabeans
How to avoid using ApplicationContext.getBean() when implementing Spring IOC

I'm just getting started with Spring IOC concept. I often see most of the examples found in the internet use …

java spring jakarta-ee inversion-of-control spring-ioc