Exemplo n.º 1
0
            static void OnCompleteWaitCallBack(object state, bool timedOut)
            {
                WaitForPendingRequestsAsyncResult thisPtr = (WaitForPendingRequestsAsyncResult)state;
                Exception completionException             = null;

                try
                {
                    if (timedOut)
                    {
                        thisPtr.AbortRequests();
                    }
                    thisPtr.CleanupEvents();
                }
#pragma warning suppress 56500 // [....], transferring exception to another thread
                catch (Exception e)
                {
                    if (Fx.IsFatal(e))
                    {
                        throw;
                    }
                    completionException = e;
                }

                thisPtr.Complete(false, completionException);
            }
Exemplo n.º 2
0
 protected void EndWaitForPendingRequests(IAsyncResult result)
 {
     WaitForPendingRequestsAsyncResult.End(result);
 }