SimpleInjector 3.1.0

Simple Injector

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

There is a newer version of this package available.
See the version list below for details.
Install-Package SimpleInjector -Version 3.1.0
dotnet add package SimpleInjector --version 3.1.0
paket add SimpleInjector --version 3.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

- `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

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
4.3.0 254,313 5/16/2018
4.3.0-beta1 367 5/11/2018
4.2.3 3,073 5/15/2018
4.2.2 45,468 4/26/2018
4.2.1 46,139 4/15/2018
4.2.0 509 4/14/2018
4.1.3 113 5/15/2018
4.1.2 277 4/26/2018
4.1.1 36,794 4/4/2018
4.1.0 37,861 3/23/2018
4.1.0-beta1 337 3/16/2018
4.1.0-alpha1 661 2/26/2018
4.0.12 529,629 10/21/2017
4.0.11 111,656 9/20/2017
4.0.8 359,818 6/3/2017
4.0.7 50,365 5/19/2017
4.0.6 43,797 5/4/2017
4.0.3 49,124 4/19/2017
4.0.2 2,654 4/19/2017
4.0.0 78,563 3/31/2017
4.0.0-beta2 20,722 3/14/2017
4.0.0-beta1 3,215 2/19/2017
4.0.0-alpha3 3,339 1/8/2017
4.0.0-alpha2 759 12/30/2016
4.0.0-alpha1 940 11/25/2016
3.3.2 344,406 12/2/2016
3.3.1 18,490 11/23/2016
3.3.0 21,177 11/21/2016
3.3.0-beta2 623 11/10/2016
3.3.0-beta1 203 11/9/2016
3.3.0-alpha1 185 11/11/2016
3.2.7 76,831 11/3/2016
3.2.5 5,644 11/1/2016
3.2.4 16,314 10/26/2016
3.2.3 30,697 10/16/2016
3.2.2 139,615 8/26/2016
3.2.0 115,336 6/28/2016
3.2.0-beta2 228 6/28/2016
3.2.0-beta1 188 6/27/2016
3.2.0-alpha2 2,344 5/2/2016
3.1.5 84,575 5/22/2016
3.1.5-alpha3 177 5/22/2016
3.1.5-alpha2 169 5/22/2016
3.1.5-alpha1 171 5/18/2016
3.1.4 35,782 5/1/2016
3.1.3 40,306 4/12/2016
3.1.2 184,488 12/14/2015
3.1.2-alpha2 488 12/8/2015
3.1.2-alpha1 243 12/6/2015
3.1.1 61,700 11/23/2015
3.1.0 51,368 10/12/2015
3.0.7 1,141 10/10/2015
3.0.6 5,964 10/4/2015
3.0.5 36,212 9/3/2015
3.0.4 2,732 8/31/2015
3.0.3 2,227 8/27/2015
3.0.1 10,895 8/20/2015
3.0.0 5,751 8/18/2015
3.0.0-beta4 1,393 8/11/2015
3.0.0-beta3 293 8/3/2015
3.0.0-beta2 414 7/17/2015
3.0.0-beta1 1,102 6/28/2015
3.0.0-alpha2 294 6/21/2015
3.0.0-alpha1 328 6/14/2015
2.8.3 35,709 7/17/2015
2.8.1 1,566 7/16/2015
2.8.0 116,815 5/2/2015
2.8.0-beta5 200 5/3/2015
2.8.0-beta4 368 4/27/2015
2.8.0-beta3 209 4/26/2015
2.8.0-beta2 288 4/17/2015
2.8.0-beta1 504 4/9/2015
2.8.0-alpha1 259 4/5/2015
2.7.3 60,259 3/9/2015
2.7.3-alpha1 328 3/1/2015
2.7.2 23,306 2/12/2015
2.7.2-beta2 208 2/11/2015
2.7.2-beta1 231 2/10/2015
2.7.2-alpha2 206 2/12/2015
2.7.2-alpha1 200 2/10/2015
2.7.1 7,656 2/1/2015
2.7.1-alpha3 940 1/16/2015
2.7.1-alpha2 220 1/16/2015
2.7.1-alpha1 210 1/15/2015
2.7.0 7,102 1/15/2015
2.7.0-beta2 217 1/13/2015
2.7.0-beta1 1,154 11/12/2014
2.6.1 67,970 10/26/2014
2.6.0 6,351 10/14/2014
2.6.0-beta2 345 9/20/2014
2.6.0-beta1 1,786 8/30/2014
2.6.0-alpha2 598 8/17/2014
2.6.0-alpha1 222 8/17/2014
2.5.2 46,799 7/13/2014
2.5.0 49,994 3/2/2014
2.5.0-beta2 284 2/26/2014
2.5.0-beta1 292 2/9/2014
2.4.1 13,191 1/14/2014
2.4.0 8,257 12/8/2013
2.4.0-beta3 307 11/24/2013
2.4.0-beta2 353 11/5/2013
2.4.0-beta1 453 10/15/2013
2.4.0-alpha3 404 8/23/2013
2.4.0-alpha1 358 7/15/2013
2.3.6 8,517 10/21/2013
2.3.5 8,188 9/2/2013
2.3.2 374 8/31/2013
2.3.0 22,926 6/30/2013
2.3.0-beta2 270 6/20/2013
2.3.0-beta1 240 6/18/2013
2.2.3 6,239 5/4/2013
2.2.1 2,066 4/19/2013
2.2.0 1,070 4/8/2013
2.1.0 1,652 3/19/2013
2.0.2 3,732 3/10/2013
2.0.1 1,919 2/28/2013
2.0.0 2,341 2/25/2013
2.0.0-beta5 293 2/22/2013
2.0.0-beta4 280 2/17/2013
2.0.0-beta3 273 2/10/2013
2.0.0-beta2 262 2/8/2013
2.0.0-beta1 272 1/29/2013
2.0.0-alpha1 294 1/19/2013
1.6.0.12319 4,692 11/15/2012
1.5.0.12199 3,029 7/17/2012
1.4.2.12140 2,330 5/19/2012
1.4.0.12049 740 2/17/2012
1.3.0.11343 520 12/10/2011
1.2.0.11273 1,194 10/3/2011
Show less