Exemplo n.º 1
0
        public IOStateChange(EIOState State, Exception Exception = null)
        {
            this.State     = State;
            this.Exception = Exception;

            Core.Diagnostics.Log(this);
        }
        protected void InvokStatusChanged(EIOState EIOState, Exception Exception = null)
        {
            _Status = EIOState;

            IOStateChange IOSC = new IOStateChange(EIOState, Exception);

            OnStatusChanged?.Invoke(this, IOSC);
        }
Exemplo n.º 3
0
        public void UpdateServersList( )
        {
            try
            {
                _ProcessSQLServerProviders( );

                Status = (_ICP4SecurityServers.Count > 0) ? EIOState.Fallback
                                                            : EIOState.Empty;

                _InvokeDataLoaded(ELoadingState.Completed);
            }
            catch (Exception Ex)
            {
                Status = (_ICP4SecurityServers.Count > 0) ? EIOState.Fallback
                                                            : EIOState.Empty;

                _InvokeDataLoaded((Status == EIOState.Empty) ? ELoadingState.Failed : ELoadingState.Partial, Ex);
            }
        }
Exemplo n.º 4
0
 private void _InvokStatusChanged(EIOState EIOState, Exception Exception = null)
 {
     _Status = EIOState;
     OnStatusChanged?.Invoke(this, new IOStateChange(EIOState, Exception));
 }