FermiContinater - a C# IoC container for the rest of us
FermiContainer supports registration of interfaces and implementing classes, and through constructor injection the dependencies known to the container are automatically resolved. No attributes or XML configuration are needed. This is simplicity at its best and FermiContainer is truly a C# IoC container for the rest of us.
See the tests for complete usage examples, or use the quick starts below.
Register registers interfaces and their implementation, or just standalone classes.
Resolve gives you a new instance each time. Constructor arguments are automatically resolved using the container. FermiContainer will use the first constructor if multiple constructors are present in the class.
Unless you have already registered an existing instance.
Singleton returns the same single instance each time.
If FermiContainer ever becomes too simple for your needs, I recommend LightInject.
PM> Install-Package FermiContainer
PM> Install-Package FermiContainer.Sources