Akka.net v1.4.15 Release Notes
Release Date: 2021-01-19 // over 3 years ago-
๐ Maintenance Release for Akka.NET 1.4
๐ Akka.NET v1.4.15 introduces a new module, Akka.DependencyInjection, which will replace Akka.DI.Core and all of the libraries which depend on it. This seemed like the easiest way to preserve backwards compatibility - simple deprecate the old package and replace it with a new one.
So what does Akka.DependencyInjection do differently than Akka.DI.Core?
๐ 1. Allows users to pass in an
IServiceProvider
into theActorSystem
before the latter is created, via a new kind of programmatic configurationSetup
that was introduced in Akka.NET v1.4. This ensures that theIServiceProvider
is immutable within anActorSystem
, a problem that we have currently with Akka.DI.Core. ๐ 2. Makes it easy to access theIServiceProvider
via theAkka.DependencyInjection.ServiceProvider.For(ActorSystem)
method, which is what we can use to get access to the service provider in order to consume required services inside our actors. ๐ 3. Makes it possible to dependency inject some parameters will dynamically specifying some others, something that users have been asking for since 2015.๐ To see a full example of how to use Akka.DependencyInjection in concert with Microsoft.Extensions.DependencyInjection, please see https://getakka.net/articles/actors/dependency-injection.html
Other changes:
- Akka: Add
WithConfigFallback
quality of life helper method toBootstrapSetup
- โ Akka.MultiNodeTestRunner: Provide .NET 5.0 support for MultiNode TestKit
๐ To see the full set of fixes in Akka.NET v1.4.15, please see the milestone on Github.
COMMITS LOC+ LOC- AUTHOR 8 5351 4004 Aaron Stannard 3 5 5 dependabot-preview[bot] 2 369 170 Ebere Abanonu 1 7 0 Gregorius Soedharmo - Akka: Add