Example #1
0
        public int EndWait(IAsyncResult asyncResult)
        {
            // Get result object from async result
            WaitAsyncResult result = (WaitAsyncResult)asyncResult;

            // Return
            return(result.MessageSize);
        }
Example #2
0
        public void CancelWait(IAsyncResult asyncResult)
        {
            // Get result object from async result
            WaitAsyncResult result = (WaitAsyncResult)asyncResult;

            // Cancel result object
            result.Cancel();
        }