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;
}
}