Beispiel #1
0
        public object End(out System.Exception exception)
        {
            if (!m_completed)
            {
                GetWaitHandle().WaitOne();
            }

            CurrentContext.AttachRequestContext(m_context);

            exception = m_exception;
            return(m_message);
        }
Beispiel #2
0
        public object End()
        {
            if (!m_completed)
            {
                GetWaitHandle().WaitOne();
            }

            CurrentContext.AttachRequestContext(m_context);

            if (m_exception != null)
            {
                throw new ApplicationException("The host component has thrown an exception", m_exception);
            }

            return(m_message);
        }