Interface IIndirectActorProducer
This interface defines a class of actor creation strategies deviating from the usual default of just reflectively instantiating the Actor subclass. It can be used to allow a dependency injection framework to determine the actual actor class and how it shall be instantiated.
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public interface IIndirectActorProducer
Properties
| Improve this Doc View SourceActorType
This method is used by Props to determine the type of actor to create. The returned type is not used to produce the actor.
Declaration
Type ActorType { get; }
Property Value
Type | Description |
---|---|
Type | The type of the actor created. |
Methods
| Improve this Doc View SourceProduce()
This factory method must produce a fresh actor instance upon each invocation. It is not permitted to return the same instance more than once.
Declaration
ActorBase Produce()
Returns
Type | Description |
---|---|
ActorBase | A fresh actor instance. |
Release(ActorBase)
This method is used by Props to signal the producer that it can
release it's reference.
Declaration
void Release(ActorBase actor)
Parameters
Type | Name | Description |
---|---|---|
ActorBase | actor | The actor to release |