public object End(out System.Exception exception) { if (!m_completed) { GetWaitHandle().WaitOne(); } CurrentContext.AttachRequestContext(m_context); exception = m_exception; return(m_message); }
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); }