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.

Is there TryResolve in Unity?

How can I make Unity not to throw ResolutionFailedException if Resolve fails? Is there something like TryResolve<IMyInterface>? …

c# unity-container ioc-container
Constructor with multiple arguments with Ninject

I am tring to use Ninject as a IoC container but could not understand how to create an instance of …

c# ninject ioc-container
DI/IoC Container Performance Benchmark Comparison?

I've found some 2008 benchmark results for testing the performance of several of the top .NET DI/IoC containers here. But …

c# structuremap ioc-container ninject autofac
How to register multiple IDbConnectionFactory instances using Funq in ServiceStack.net

How would you go about registering diferent IDbConnectionFactory instances in Funq and then access them directly within your services? Do …

c# servicestack inversion-of-control ioc-container funq
Using Unity in WPF

I have Unity 2.0 working well within the App.xaml.cs to register and resolve within that class. The question I …

c# wpf unity-container ioc-container unity2.0
autofac's Func<T> to resolve named service

Given registered services: builder.RegisterType<Foo1>().Named<IFoo>("one").As<IFoo>(); builder.RegisterType<…

c# .net dependency-injection ioc-container autofac
StructureMap and ASP .Net Web API and .Net Framework 4.5

Does the current version of StructureMap support ASP .Net Web API, MVC 4 and .NET Framework 4.5?

.net dependency-injection ioc-container asp.net-web-api structuremap
Named Instances and a Default Instance in StructureMap?

In my StructureMap bootstrapping code I'm using a custom convention to scan assemblies and add interface/implementation pairs to the …

c# .net dependency-injection ioc-container structuremap
Unity IOC Buildup vs Resolve?

I was wondering when do I use buildup and when do I use resolve, when using the Unity IOC. And …

.net unity-container ioc-container
MEF: Where should I put the CompositionContainer?

I have been using the Windsor IoC Container for my web-based application, to resolve the data access layer implementation the …

c# .net ioc-container mef