Akka.Actor.UntypedActor.BecomeStacked C# (CSharp) Method

BecomeStacked() protected method

Changes the actor's behavior and replaces the current receive handler with the specified handler. The current handler is stored on a stack, and you can revert to it by calling IUntypedActorContext.UnbecomeStacked Please note, that in order to not leak memory, make sure every call to BecomeStacked is matched with a call to IUntypedActorContext.UnbecomeStacked.
protected BecomeStacked ( UntypedReceive receive ) : void
receive UntypedReceive The new message handler.
return void
        protected void BecomeStacked(UntypedReceive receive)
        {
            Context.BecomeStacked(receive);
        }