예제 #1
0
 public void Save(DispatcherState state)
 {
     _db.HandleTransientErrors(db =>
     {
         db.Update<ServerStateItem>()
             .Set(d => d.Data, state.Serialize())
             .Execute();
     },wait:300);
 }
예제 #2
0
        private void LoadState()
        {
           this.LogInfo("Loading state");
            var state = _config.Storage.Load();
            if (state != null)
            {
                _state = state;
            }

            this.LogInfo("State loaded");
        }
예제 #3
0
        private void LoadState()
        {
            this.LogInfo("Loading state");
            var state = _config.Storage.Load();

            if (state != null)
            {
                _state = state;
            }

            this.LogInfo("State loaded");
        }