Release Notes
This release can be downloaded using NuGet.
The most prominent improvements are:
- the availability of a .NET Standard 2.0 version of the Simple Injector core library, which limits the number of installed NuGet packages on machines
- support for
List<T>
andCollection<T>
dependencies.
Features and improvements
Simple Injector core library
- #559 NuGet package now contains a.NET Standard 2.0 version. Special thanks to @borrrden for this.
- #545
List<T>
andCollection<T>
dependencies are now supported out of the box. Any collection, registered usingCollection.Register
can now be injected and resolved as either aList<T>
orCollection<T>
. - #369 In case Simple Injector throws an exception explaining that the container is either locked or disposed, the .NET Standard 2.0 version now includes the stack trace that caused the container to either be locked or disposed. This information was already available in .NET 4.0 and .NET 4.5 versions.
Simple Injector ASP.NET Core integration
- #585
AutoCrossWireAspNetComponents
overload added that acceptsIServiceProvider
.
Bug fixes
Simple Injector core library
- #627 Registration of collections of variant types where implementation type is unknown to Simple Injector, especially when registering
Registration
instances throughCollection.Register
andCollection.Append
failed.
Simple Injector Web API integration package
- #628 Use of
EnableHttpRequestMessageTracking
under .NET <= 4.6.x could cause a memory leak.
Simple Injector ASP.NET Core integration
- #588
SimpleInjectorControllerActivator
will not resolve unregistered controllers from ASP.NET Core anymore.