Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 368 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 368 Bytes

LightDi

A simple light weight dependency injection container

container.RegisterTypeAs<SomeClass, ISomeInterface>();
container.RegisterInstanceAs<IAnotherInterface>(new SomeClassWithConstructor  Status = some value );
var someClass = container.Resolve<ISomeInterface>();  
var obj = container.Resolve<IAnotherInterface>();