Skip to content
This repository was archived by the owner on Nov 11, 2021. It is now read-only.

Akka.DI.Autofac v1.3.9 Release

Compare
Choose a tag to compare
@Aaronontheweb Aaronontheweb released this 01 Nov 18:48
· 42 commits to master since this release
a108906

1.3.9 November 01 2018

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);