private static void SendRetries(object state) { ReliableOutputConnection connection = (ReliableOutputConnection)state; try { connection.SendRetries(); } catch (Exception exception) { if (Fx.IsFatal(exception)) { throw; } connection.RaiseOnException(exception); } }
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); } }
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); } } }
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); } } }