Esempio n. 1
0
        protected void SetErrorState(Exception e)
        {
            errorState = new ErrorStateException(e);
            state      = ServiceState.Error;

            if (Error != null)
            {
                Error(this, EventArgs.Empty);
            }
        }
Esempio n. 2
0
        protected void SetErrorState(Exception e)
        {
            errorState = new ErrorStateException(e);
            state = ServiceState.Error;

            if (Error != null)
                Error(this, EventArgs.Empty);
        }
Esempio n. 3
0
 public ErrorStateException SetErrorState(Exception error)
 {
     Logger.Network.Error("Entering error state", error);
     errorState = new ErrorStateException(error);
     return errorState;
 }
Esempio n. 4
0
 public ErrorStateException SetErrorState(Exception error)
 {
     log.Error("Error state", error);
     errorState = new ErrorStateException(error.Message, error);
     throw errorState;
 }