protected override Task OnStart(bool restarted)
 {
     _state = new NotepadState {
         Document = new List <string>()
     };
     return(Task.FromResult(0));
 }
예제 #2
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;
            }
        }
예제 #4
0
 protected override Task OnStart(bool restarted)
 {
     _state = new NotepadState { Document = new List<string>() };
     return Task.FromResult(0);
 }