This repository was archived by the owner on Nov 11, 2021. It is now read-only.
Akka.DI.Autofac v1.3.9 Release
1.3.9 November 01 2018
- Added support for Akka.NET v1.3.9
- Added new
UseAutoFac
extension method:
By using an extension method of ActorSystem
, the relationship between the ActorSystem
and the container
becomes clear and we can immediately see that the ActorSystem
is being modified to use the container
and that's why you're good to use the system.DI()
method from that point on.
system.UseAutofac(container);
We also no longer need to create the instance of AutoFacDependencyResolver
ourselves and/or create a variable. For convenience, for the rare cases where we do need to use the AutoFacDependencyResolver
instance created, we can use an overload of the UseAutofac
extension method:
system.UseAutofac(container, out var propsResolver);