Esempio n. 1
0
        internal Exception GetPendingException()
        {
            ExceptionQueue exceptionQueue = this.exceptionQueue;

            if (exceptionQueue != null)
            {
                return(exceptionQueue.GetException());
            }
            return(null);
        }
Esempio n. 2
0
        internal void ThrowPending()
        {
            ExceptionQueue exceptionQueue = this.exceptionQueue;

            if (exceptionQueue != null)
            {
                Exception exception = exceptionQueue.GetException();
                if (exception != null)
                {
                    throw TraceUtility.ThrowHelperError(exception, Guid.Empty, this);
                }
            }
        }
Esempio n. 3
0
        //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);
                }
            }
        }
Esempio n. 4
0
        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);
            }
        }