protected override Task OnStart(bool restarted) { _state = new NotepadState { Document = new List <string>() }; return(Task.FromResult(0)); }
private void OnRecover(SnapshotOffer snapshot) { _eventLog.Add("OnRecover(SnapshotOffer)"); var state = (NotepadState)snapshot.Snapshot; if (state != null) _state = state; }
private void OnRecover(SnapshotOffer snapshot) { _eventLog.Add("OnRecover(SnapshotOffer)"); var state = (NotepadState)snapshot.Snapshot; if (state != null) { _state = state; } }
protected override Task OnStart(bool restarted) { _state = new NotepadState { Document = new List<string>() }; return Task.FromResult(0); }