Skip to content

yury-kozlov/injector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

injector

Represents a simple implementation of DI (dependencies injector).

Using:

// registering dependencies:
Injector.Register(() => new CoffeeMachine()).AsSingleInstance();
Injector.Register(() => new Developer(Injector.Resolve<CoffeeMachine>()));

// resolving dependencies:
var dev = Injector.Resolve<Developer>();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages