SimpleInjector 3.1.0

Simple Injector is an easy, flexible and fast dependency injection library that uses best practice to guide your solutions toward the pit of success.

No packages depend on SimpleInjector.

- `Lifestyle.CreateProducer<TService>(Type, Container)` overload added. (fixes #100) - `Container.RegisterConditional` overload added that accepts a `Registration` instance. This adds extra flexibility and allows using conditional registrations using delegates. (fixes #102) - `Container.GetTypesToRegister` overload added that accepts an `TypesToRegisterOptions` to allow excluding composites and including decorators and generic type definitions. (fixes #122) - `RegisterCollection` overloads that accept a list of assemblies, now suppress composite types. (fixes #119) - Improved performance of `GetTypesToRegister` method and the `Register` and `RegisterCollection` overloads that accept a list of collections. - Check added to `InstanceProducer` constructor to prevent incompatible `Registration` objects from being supplied. (fixes #52) - Exception message improved in case batch-registration skipped decorator. (fixes #13) - `Lifestyle.CreateRegistration` and `Container.AddRegistration` methods now throws a clear exception explaining that open generic types can't be supplied. (fixes #126) - Expection message improved for types with multiple constructors. The exception message now references the documentation about this subject. Full notes: https://github.com/simpleinjector/SimpleInjector/releases/tag/v3.1

This package has no dependencies.

Version Downloads Last updated
5.5.0 5 3/7/2025
5.4.6 2 3/7/2025
5.4.5 2 3/7/2025
5.4.4 3 3/7/2025
5.4.3 2 3/7/2025
5.4.3-beta1 3 3/7/2025
5.4.2 3 3/7/2025
5.4.1 7 8/5/2023
5.4.1-beta2 2 3/7/2025
5.4.1-beta1 3 3/7/2025
5.4.0 3 3/7/2025
5.3.3 2 3/7/2025
5.3.2 2 3/7/2025
5.3.1 2 3/7/2025
5.3.0 3 3/7/2025
5.3.0-beta2 2 3/7/2025
5.3.0-beta1 3 3/7/2025
5.2.1 2 3/7/2025
5.2.0-alpha2 2 3/7/2025
5.2.0-alpha1 3 3/7/2025
5.1.0 2 3/7/2025
5.0.4 2 3/7/2025
5.0.3 3 3/7/2025
5.0.2 3 3/7/2025
5.0.1 4 3/7/2025
5.0.0 2 3/7/2025
5.0.0-beta2 4 3/7/2025
5.0.0-beta1 2 3/7/2025
4.10.2 3 3/7/2025
4.9.2 3 3/7/2025
4.9.1 3 3/7/2025
4.9.0 2 3/7/2025
4.8.1 2 3/7/2025
4.8.0 2 3/7/2025
4.8.0-beta2 2 3/7/2025
4.8.0-beta1 2 3/7/2025
4.8.0-alpha3 3 3/7/2025
4.8.0-alpha2 2 3/7/2025
4.8.0-alpha1 2 3/7/2025
4.7.1 3 3/7/2025
4.7.0 3 3/7/2025
4.6.2 2 3/7/2025
4.6.1 3 3/7/2025
4.6.0 3 3/7/2025
4.6.0-beta2 2 3/7/2025
4.6.0-beta1 2 3/7/2025
4.5.3 2 3/7/2025
4.5.2 2 3/7/2025
4.5.1 2 3/7/2025
4.5.0 3 3/7/2025
4.5.0-beta1 3 3/7/2025
4.4.3 3 3/7/2025
4.4.2 3 3/7/2025
4.4.0 2 3/7/2025
4.3.0 2 3/7/2025
4.3.0-beta1 3 3/7/2025
4.2.3 2 3/7/2025
4.2.2 3 3/7/2025
4.2.1 3 3/7/2025
4.2.0 2 3/7/2025
4.1.3 2 3/7/2025
4.1.2 3 3/7/2025
4.1.1 3 3/7/2025
4.1.0 2 3/7/2025
4.1.0-beta1 3 3/7/2025
4.1.0-alpha1 3 3/7/2025
4.0.12 3 3/7/2025
4.0.11 3 3/7/2025
4.0.8 2 3/7/2025
4.0.7 3 3/7/2025
4.0.6 2 3/7/2025
4.0.3 3 3/7/2025
4.0.2 2 3/7/2025
4.0.0 3 3/7/2025
4.0.0-beta2 2 3/7/2025
4.0.0-beta1 3 3/7/2025
4.0.0-alpha3 2 3/7/2025
4.0.0-alpha2 3 3/7/2025
4.0.0-alpha1 3 3/7/2025
3.3.2 2 3/7/2025
3.3.1 2 3/7/2025
3.3.0 3 3/7/2025
3.3.0-beta2 3 3/7/2025
3.3.0-beta1 4 3/7/2025
3.3.0-alpha1 2 3/7/2025
3.2.7 2 3/7/2025
3.2.5 3 3/7/2025
3.2.4 4 3/7/2025
3.2.3 3 3/7/2025
3.2.2 2 3/7/2025
3.2.0 3 3/7/2025
3.2.0-beta2 3 3/7/2025
3.2.0-beta1 3 3/7/2025
3.2.0-alpha2 2 3/7/2025
3.1.5 3 3/7/2025
3.1.5-alpha3 3 3/7/2025
3.1.5-alpha2 3 3/7/2025
3.1.5-alpha1 2 3/7/2025
3.1.4 2 3/7/2025
3.1.3 3 3/7/2025
3.1.2 2 3/7/2025
3.1.2-alpha2 3 3/7/2025
3.1.2-alpha1 3 3/7/2025
3.1.1 2 3/7/2025
3.1.0 2 3/7/2025
3.0.7 4 3/7/2025
3.0.6 3 3/7/2025
3.0.5 3 3/7/2025
3.0.4 3 3/7/2025
3.0.3 3 3/7/2025
3.0.1 2 3/7/2025
3.0.0 3 3/7/2025
3.0.0-beta4 4 3/7/2025
3.0.0-beta3 3 3/7/2025
3.0.0-beta2 3 3/7/2025
3.0.0-beta1 4 3/7/2025
3.0.0-alpha2 3 3/7/2025
3.0.0-alpha1 3 3/7/2025
2.8.3 2 3/7/2025
2.8.1 4 3/7/2025
2.8.0 2 3/7/2025
2.8.0-beta5 2 3/7/2025
2.8.0-beta4 2 3/7/2025
2.8.0-beta3 2 3/7/2025
2.8.0-beta2 2 3/7/2025
2.8.0-beta1 3 3/7/2025
2.8.0-alpha1 3 3/7/2025
2.7.3 2 3/7/2025
2.7.3-alpha1 3 3/7/2025
2.7.2 2 3/7/2025
2.7.2-beta2 2 3/7/2025
2.7.2-beta1 2 3/7/2025
2.7.2-alpha2 2 3/7/2025
2.7.2-alpha1 3 3/7/2025
2.7.1 3 3/7/2025
2.7.1-alpha3 3 3/7/2025
2.7.1-alpha2 2 3/7/2025
2.7.1-alpha1 2 3/7/2025
2.7.0 2 3/7/2025
2.7.0-beta2 3 3/7/2025
2.7.0-beta1 3 3/7/2025
2.6.1 3 3/7/2025
2.6.0 2 3/7/2025
2.6.0-beta2 2 3/7/2025
2.6.0-beta1 2 3/7/2025
2.6.0-alpha2 4 3/7/2025
2.6.0-alpha1 2 3/7/2025
2.5.2 3 3/7/2025
2.5.0 3 3/7/2025
2.5.0-beta2 3 3/7/2025
2.5.0-beta1 3 3/7/2025
2.4.1 3 3/7/2025
2.4.0 2 3/7/2025
2.4.0-beta3 2 3/7/2025
2.4.0-beta2 3 3/7/2025
2.4.0-beta1 2 3/7/2025
2.4.0-alpha3 2 3/7/2025
2.4.0-alpha1 2 3/7/2025
2.3.6 3 3/7/2025
2.3.5 2 3/7/2025
2.3.2 3 3/7/2025
2.3.0 3 3/7/2025
2.3.0-beta2 3 3/7/2025
2.3.0-beta1 3 3/7/2025
2.2.3 2 3/7/2025
2.2.1 2 3/7/2025
2.2.0 3 3/7/2025
2.1.0 2 3/7/2025
2.0.2 2 3/7/2025
2.0.1 2 3/7/2025
2.0.0 3 3/7/2025
2.0.0-beta5 4 3/7/2025
2.0.0-beta4 3 3/7/2025
2.0.0-beta3 3 3/7/2025
2.0.0-beta2 3 3/7/2025
2.0.0-beta1 3 3/7/2025
2.0.0-alpha1 3 3/7/2025
1.6.0.12319 3 3/7/2025
1.5.0.12199 3 3/7/2025
1.4.2.12140 2 3/7/2025
1.4.0.12049 2 3/7/2025
1.3.0.11343 2 3/7/2025
1.2.0.11273 3 3/7/2025