Пример #1
0
 public void UpdateStatus(DataStoreStatus newStatus)
 {
     if (_status.Update(newStatus, out _))
     {
         _taskExecutor.ScheduleEvent(newStatus, StatusChanged);
     }
 }
        public void UpdateStatus(DataSourceState newState, DataSourceStatus.ErrorInfo?newError)
        {
            var updated = _status.Update(new StateAndError {
                State = newState, Error = newError
            },
                                         out var newStatus);

            if (updated)
            {
                _taskExecutor.ScheduleEvent(newStatus, StatusChanged);
            }
        }