Release Notes
If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.
Simple Injector v3.1 adds new convenient overloads that give more control when making batch or conditional registrations and improved some exception messages.
New features and improvements for the SimpleInjector.dll
Lifestyle.CreateProducer<TService>(Type, Container)
overload added. (fixes #100)Container.RegisterConditional
overload added that accepts aRegistration
instance. This adds extra flexibility and allows using conditional registrations using delegates. (fixes #102)Container.GetTypesToRegister
overload added that accepts anTypesToRegisterOptions
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 theRegister
andRegisterCollection
overloads that accept a list of collections. - Check added to
InstanceProducer
constructor to prevent incompatibleRegistration
objects from being supplied. (fixes #52) - Exception message improved in case batch-registration skipped decorator. (fixes #13)
Lifestyle.CreateRegistration
andContainer.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.