Click or drag to resize
Akka.NETGraphStageLogicGetStageActorRef Method
Initialize a StageActorRef which can be used to interact with from the outside world "as-if" an actor. The messages are looped through the GetAsyncCallbackT(ActionT) mechanism of GraphStageTShape so they are safe to modify internal state of this stage. This method must (the earliest) be called after the GraphStageLogic constructor has finished running, for example from the PreStart callback the graph stage logic provides. Created StageActorRef to get messages and watch other actors in synchronous way. The StageActorRef's lifecycle is bound to the Stage, in other words when the Stage is finished, the Actor will be terminated as well. The entity backing the StageActorRef is not a real Actor, but the GraphStageLogic itself, therefore it does not react to PoisonPill.

Namespace:  Akka.Streams.Stage
Assembly:  Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
protected StageActorRef GetStageActorRef(
	StageActorRefReceive receive
)

Parameters

receive
Type: Akka.Streams.StageStageActorRefReceive
Callback that will be called upon receiving of a message by this special Actor

Return Value

Type: StageActorRef
Minimal actor with watch method
See Also