Akka.Persistence.Tests.SnapshotFailureRobustnessSpec.SaveSnapshotTestActor.ReceiveCommand C# (CSharp) Method

ReceiveCommand() protected method

protected ReceiveCommand ( object message ) : bool
message object
return bool
            protected override bool ReceiveCommand(object message)
            {
                if (message is Cmd)
                {
                    var cmd = (Cmd) message;
                    Persist(cmd.Payload, _ => SaveSnapshot(cmd.Payload));
                }
                else if (message is SaveSnapshotSuccess)
                    _probe.Tell(((SaveSnapshotSuccess)message).Metadata.SequenceNr);
                else
                    _probe.Tell(message);
                return true;
            }
        }
SnapshotFailureRobustnessSpec.SaveSnapshotTestActor