DestroyWaitHandle() приватный Метод

This is called by the creator of the FutureAsyncResult instance to destroy the wait handle once the operation is completed
private DestroyWaitHandle ( ) : void
Результат void
Пример #1
0
        object ISynchronizeInvoke.EndInvoke(IAsyncResult result)
        {
            ActiveObjectAsyncResult far = result as ActiveObjectAsyncResult;

            Contract.ThrowIfNull(far);

            object r = null;

            try
            {
                r = far.Future.Wait();
            }
            finally
            {
                far.DestroyWaitHandle();
            }

            return(r);
        }