Simple Injector is an Dependency Injection library for Microsoft .NET, .NET Core, .NET Standard, Windows Phone, Windows Store Apps, and Mono.
Simple Injector is an Inversion of Control library for the Microsoft .NET platform and supports .NET 4.0, .NET Core, .NET Standard, Silverlight, Windows Phone 8, Windows Store Apps, PCL and Mono. According to the web site, the goal of Simple Injector is to provide .NET application developers with
an easy, flexible and fast dependency injection library that uses best practice to guide your solutions toward the pit of success.
To get familiar with Simple Injector, you can go to the project's documentation wiki. It contains many subjects, such as:
References:
- Basic usage examples
- An integration guide that helps you use Simple Injector with application frameworks such as ASP.NET MVC, ASP.NET Web API, WCF, ASP.NET Core and libraries such as RavenDB, SignalR, and T4MVC.
- A how to with topics such as the importance of Verifying the container's configuration.
- Documentation on how the Simple Injector Diagnostic Services can help giving feedback on your DI configuration and spot common configuration mistakes.
- A how to on working with dependency injection in multi-threaded applications.
- A discussion about configuring lifestyles such as Transient and Singleton in object lifestyle management.
The Advanced scenarios section of the documentation talks about subjects such as:
- Batch registration of generic types.
- Registration of open generic types.
- Context based injection.
- Registering generic decorators.
Besides these references to the Simple Injector documentation there are lots of other interesting articles such as:
- An independent article that compares the performance of Simple Injector with many other DI libraries.
- The Simple Injector API documentation.
- The Simple Injector Design Principles documentation.