github simpleinjector/SimpleInjector v4.3
Simple Injector v4.3

latest releases: v5.4.4, v5.4.3, v5.4.2...
5 years ago

Release Notes

This release can be downloaded using NuGet.

The major theme of this release is to improve usability by introducing new overloads to existing registration methods and by grouping all the collection registration methods.

The grouping of collection registration methods was started in release v4.1 and had to be done gradually from minor release to minor release to prevent having too many changes at once for existing users. This release ends this refactoring phase; all methods concerning the creation, appending and registration of collections are now available by calling container.Collection., e.g. container.Collection.Register.

Overloads have been added to Collection.Create, Collection.Append, Collection.Register and GetTypesToRegister to make it easier to work with these methods. Among other things, this included the addition of generic methods and methods containing a params array.

Features and improvements

Simple Injector core library

  • #548 Added Collection.Create(params Assembly[]) and Collection.CreateRegistration(params Assembly[]) overloads
  • #547 Renamed Collection.AppendTo to Collection.Append. Old methods marked [Obsolete].
  • #546 Added Collection.Append<TService, TImplementation>() overload.
  • #552 Added RegisterConditional<TService>(Registration, Predicate<PredicateContext>) overload.
  • #551 Added GetTypesToRegister overloads.
  • #541 Renamed RegisterCollection overloads to Collection.Register. Old methods are marked [Obsolete].
  • #542 Added `Collection.Register(params) overloads.
  • #556 Renamed Container.Collections to Container.Collection. Old property marked [Obsolete].

Don't miss a new SimpleInjector release

NewReleases is sending notifications on new releases.