Akka.Tests.Actor.HotSwapSpec.RevertToInitialState.RevertToInitialState C# (CSharp) Method

RevertToInitialState() public method

public RevertToInitialState ( ) : System
return System
            public RevertToInitialState() {

                Receive<string>(m => "state".Equals(m), (m) => Sender.Tell("0"));
                Receive<string>(m => "swap".Equals(m), (m) => {
                    BecomeStacked(() => {
                        Receive<string>(x => "state".Equals(x), x => Sender.Tell("1"));
                        Receive<string>(x => "swapped".Equals(x), x => Sender.Tell("swapped"));
                        Receive<string>(x => "crash".Equals(x), x => {
                            Crash();
                        });
                    });
                    Sender.Tell("swapped");
                });
            }
HotSwapSpec.RevertToInitialState