 | IActorDsl.BecomeStacked Method |
Changes the actor's behavior and replaces the current handler with the specified handler without discarding the current.
The current handler is stored on a stack, and you can revert to it by calling
UnbecomeStacked()
RemarksPlease note, that in order to not leak memory, make sure every call to
BecomeStacked(Action< Object, IActorContext> )
is matched with a call to
UnbecomeStacked().
Namespace:
Akka.Actor.Dsl
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntaxvoid BecomeStacked(
Action<Object, IActorContext> handler
)
abstract BecomeStacked :
handler : Action<Object, IActorContext> -> unit
Parameters
- handler
- Type: System.Action<Object, IActorContext>
TBD
See Also