github simpleinjector/SimpleInjector v3.1
Simple Injector v3.1

latest releases: v5.4.5, v5.4.4, v5.4.3...
8 years ago

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

Don't miss a new SimpleInjector release

NewReleases is sending notifications on new releases.