Akka.Persistence.PersistentView.RecoveryStarted C# (CSharp) Метод

RecoveryStarted() приватный Метод

Processes a loaded snapshot, if any. A loaded snapshot is offered with a SnapshotOffer message to the actor's PersistentView.Receive method. Then initiates a message replay, either starting from the loaded snapshot or from scratch, and switches to ReplayStarted state. All incoming messages are stashed.
private RecoveryStarted ( long replayMax ) : ViewState
replayMax long
Результат ViewState
        private ViewState RecoveryStarted(long replayMax)
        {
            return new ViewState("recovery started - replayMax: " + replayMax, true, (receive, message) =>
            {
                if (message is LoadSnapshotResult)
                {
                    var loadResult = (LoadSnapshotResult)message;
                    if (loadResult.Snapshot != null)
                    {
                        var selectedSnapshot = loadResult.Snapshot;
                        LastSequenceNr = selectedSnapshot.Metadata.SequenceNr;
                        base.AroundReceive(receive, new SnapshotOffer(selectedSnapshot.Metadata, selectedSnapshot.Snapshot));
                    }
                    ChangeState(ReplayStarted(true));
                    Journal.Tell(new ReplayMessages(LastSequenceNr + 1, loadResult.ToSequenceNr, replayMax, PersistenceId, Self));
                }
                else _internalStash.Stash();
            });
        }