예제 #1
0
        protected void SetErrorState(Exception e)
        {
            errorState = new ErrorStateException(e);
            state      = ServiceState.Error;

            if (Error != null)
            {
                Error(this, EventArgs.Empty);
            }
        }
예제 #2
0
파일: Service.cs 프로젝트: ikvm/cloudb
        protected void SetErrorState(Exception e)
        {
            errorState = new ErrorStateException(e);
            state = ServiceState.Error;

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