private static void OnReceiveCompletedStatic(IAsyncResult result) { ReliableOutputSessionChannelOverDuplex asyncState = (ReliableOutputSessionChannelOverDuplex)result.AsyncState; try { asyncState.OnReceiveCompleted(result); } catch (Exception exception) { if (Fx.IsFatal(exception)) { throw; } asyncState.ReliableSession.OnUnknownException(exception); } }
static void OnReceiveCompletedStatic(IAsyncResult result) { ReliableOutputSessionChannelOverDuplex channel = (ReliableOutputSessionChannelOverDuplex)result.AsyncState; try { channel.OnReceiveCompleted(result); } #pragma warning suppress 56500 // covered by FxCOP catch (Exception e) { if (Fx.IsFatal(e)) { throw; } channel.ReliableSession.OnUnknownException(e); } }