Akka.Persistence.Tests.PersistentActorSpec.HandleRecoveryFinishedEventPersistentActor.SendingRecover C# (CSharp) Method

SendingRecover() protected method

protected SendingRecover ( object message ) : bool
message object
return bool
            protected bool SendingRecover(object message)
            {
                if (message is SnapshotOffer)
                {
                    // sending ourself a normal message tests
                    // that we stash them until recovery is complete
                    Self.Tell("I am the stashed");
                    base.ReceiveRecover(message);
                }
                else if (message is RecoveryCompleted)
                {
                    Probe.Tell(RecoveryCompleted.Instance);
                    Self.Tell("I am the recovered");
                    UpdateState(new Evt(RecoveryCompleted.Instance));
                }
                else return false;
                return true;
            }
        }