private static void OnSendRetriesComplete(IAsyncResult result)
 {
     if (!result.CompletedSynchronously)
     {
         ReliableOutputConnection asyncState = (ReliableOutputConnection)result.AsyncState;
         try
         {
             asyncState.CompleteSendRetries(result);
         }
         catch (Exception exception)
         {
             if (Fx.IsFatal(exception))
             {
                 throw;
             }
             asyncState.RaiseOnException(exception);
         }
     }
 }
        static void OnSendRetriesComplete(IAsyncResult result)
        {
            if (!result.CompletedSynchronously)
            {
                ReliableOutputConnection outputConnection = (ReliableOutputConnection)result.AsyncState;

                try
                {
                    outputConnection.CompleteSendRetries(result);
                }
#pragma warning suppress 56500 // covered by FxCOP
                catch (Exception e)
                {
                    if (Fx.IsFatal(e))
                    {
                        throw;
                    }

                    outputConnection.RaiseOnException(e);
                }
            }
        }