Simple Injector v4.7 Release Notes
Release Date: 2019-09-01 // over 4 years ago-
๐ 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.
๐ฆ ServiceCollection Integration packages
#718 Simplify integration with
IStringLocalizer
andIStringLocalizer<T>
by adding anUseLocalization()
extension method. Implemented by @kwlin.
Usage:app.UseSimpleInjector(container, options =\>{ options.UseLocalization(); });