Simple Injector v4.7
Release Notes
Simple Injector can be downloaded using NuGet.
The most prominent improvements in this release are:
- #649 Implemented C# 8.0 non-nullable support. This affects the core library and all integration packages. The complete API is now annotated in such way that C# 8 can warn you want you are possible using a null reference.
- Simplify integration with
IStringLocalizer
andIStringLocalizer<T>
while integrating with .NET Core. Thanks to contributor @kwlin for implementing this.
Improvements
Simple Injector core library
- #649 Implemented C# 8 non-nullable support
- #736 Marked [Obsolete] message as error
- #727 Added
GetService
method toScope
by implementingIServiceProvider
.
Usage:Scope scope = ...; IServiceProvider provider = scope; object? service = provider.GetService(typeof(SomeType));
ASP.NET Core Integration packages
- #717 Added non-generic
options.UseMiddleware
overload.