コード例 #1
0
        private static void SendRetries(object state)
        {
            ReliableOutputConnection connection = (ReliableOutputConnection)state;

            try
            {
                connection.SendRetries();
            }
            catch (Exception exception)
            {
                if (Fx.IsFatal(exception))
                {
                    throw;
                }
                connection.RaiseOnException(exception);
            }
        }
コード例 #2
0
        static void SendRetries(object state)
        {
            ReliableOutputConnection outputConnection = (ReliableOutputConnection)state;

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

                outputConnection.RaiseOnException(e);
            }
        }
コード例 #3
0
 private static void OnSendRetryComplete(IAsyncResult result)
 {
     if (!result.CompletedSynchronously)
     {
         ReliableOutputConnection asyncState = (ReliableOutputConnection)result.AsyncState;
         try
         {
             asyncState.CompleteSendRetry(result);
         }
         catch (Exception exception)
         {
             if (Fx.IsFatal(exception))
             {
                 throw;
             }
             asyncState.RaiseOnException(exception);
         }
     }
 }
コード例 #4
0
        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);
                }
            }
        }