internal Exception GetPendingException() { ExceptionQueue exceptionQueue = this.exceptionQueue; if (exceptionQueue != null) { return(exceptionQueue.GetException()); } return(null); }
internal void ThrowPending() { ExceptionQueue exceptionQueue = this.exceptionQueue; if (exceptionQueue != null) { Exception exception = exceptionQueue.GetException(); if (exception != null) { throw TraceUtility.ThrowHelperError(exception, Guid.Empty, this); } } }
//TODO: Make internal again public void ThrowPending() { ExceptionQueue queue = _exceptionQueue; if (queue != null) { Exception exception = queue.GetException(); if (exception != null) { throw TraceUtility.ThrowHelperError(exception, Guid.Empty, this); } } }
internal Exception GetPendingException() { CommunicationState currentState = this.state; Fx.Assert(currentState == CommunicationState.Closing || currentState == CommunicationState.Closed || currentState == CommunicationState.Faulted, "CommunicationObject.GetPendingException(currentState == CommunicationState.Closing || currentState == CommunicationState.Closed || currentState == CommunicationState.Faulted)"); ExceptionQueue queue = this.exceptionQueue; if (queue != null) { return(queue.GetException()); } else { return(null); } }