This is an example code for the .NET dependency injection.
- Implementing the DI by hand.
The first commit is a MVP project implementing the DI by hand. Also using a LoggerFactory to make sure the singleton of the ILogger.
- Using StructureMap.
The second commit is to use the StructureMap as the DI framework, also using the .Singleton() to make sure only one instance of ILogger.
- Using Unity.
The third commit is to use the Unity..