Example #1
0
        /// <summary>
        /// Terminates the call anchor.
        /// </summary>
        /// <param name="callback"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        public IAsyncResult BeginTerminate(AsyncCallback callback, object state)
        {
            TerminateAsyncResult terminateAsyncResult = new TerminateAsyncResult(this, this.trustedConversation, this.logger, callback, state);

            terminateAsyncResult.Process();

            return(terminateAsyncResult);
        }
Example #2
0
        /// <summary>
        /// Completes the termination operation.
        /// </summary>
        /// <param name="asyncResult"></param>
        public void EndTerminate(IAsyncResult asyncResult)
        {
            TerminateAsyncResult terminateAsyncResult = asyncResult as TerminateAsyncResult;

            terminateAsyncResult.EndInvoke();
        }