Skip to content

Generic Actor not starting after Akka.Dependency injection upgrade #6118

Answered by Arkatufus
marcoshass asked this question in Q&A
Discussion options

You must be logged in to vote

On these lines: https://github.com/marcoshass/PocAkkaCastleWindsor/blob/master/src/PocAkkaCastleWindsor.Actors/Installers/ActorInstaller.cs#L38-L42

You can't use a dependency injection to create an instance of an actor, Akka.NET have its own ways to instantiate new actors.
What you can do instead is to register an IAzureQueueReaderConfigurator<CompletedOrderMessage> service that will be injected into the new actor.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marcoshass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants