protected void SetErrorState(Exception e) { errorState = new ErrorStateException(e); state = ServiceState.Error; if (Error != null) { Error(this, EventArgs.Empty); } }
protected void SetErrorState(Exception e) { errorState = new ErrorStateException(e); state = ServiceState.Error; if (Error != null) Error(this, EventArgs.Empty); }
public ErrorStateException SetErrorState(Exception error) { Logger.Network.Error("Entering error state", error); errorState = new ErrorStateException(error); return errorState; }
public ErrorStateException SetErrorState(Exception error) { log.Error("Error state", error); errorState = new ErrorStateException(error.Message, error); throw errorState; }