Start a new topic

Dependency injection

I have been working on a little DI for DuoCode projects. 

Install using nuget

Install-Package DuoCode.SimpleInjector

It has pretty much all the functionality expected from a DI framework

Used like 


var container = new Container();
container.Bind<IMyClass, MyClass>();

instance = container.Get<IMyClass>();


It also supports, constructor injection, auto factories, collections, and open generic types. Docs

Login or Signup to post a comment