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[])
andCollection.CreateRegistration(params Assembly[])
overloads - #547 Renamed
Collection.AppendTo
toCollection.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 toCollection.Register
. Old methods are marked [Obsolete]. - #542 Added `Collection.Register(params) overloads.
- #556 Renamed
Container.Collections
toContainer.Collection
. Old property marked [Obsolete].