private static void Begin1Callback(IAsyncResult result) { if (result.CompletedSynchronously) { return; } ChainedAsyncResult thisPtr = (ChainedAsyncResult)result.AsyncState; bool completeSelf = false; Exception completeException = null; try { completeSelf = thisPtr.Begin1Completed(result); } #pragma warning disable 56500 // covered by FxCOP catch (Exception exception) { if (Fx.IsFatal(exception)) { throw; } completeSelf = true; completeException = exception; } if (completeSelf) { thisPtr.Complete(false, completeException); } }
private static void Begin2Callback(IAsyncResult result) { if (result.CompletedSynchronously) { return; } ChainedAsyncResult thisPtr = (ChainedAsyncResult)result.AsyncState; Exception completeException = null; try { thisPtr._end2(result); } #pragma warning suppress 56500 // covered by FxCOP catch (Exception exception) { if (Fx.IsFatal(exception)) { throw; } completeException = exception; } thisPtr.Complete(false, completeException); }
private static void Begin1Callback(IAsyncResult result) { if (!result.CompletedSynchronously) { ChainedAsyncResult asyncState = (ChainedAsyncResult)result.AsyncState; bool flag = false; Exception exception = null; try { flag = asyncState.Begin1Completed(result); } catch (Exception exception2) { if (Fx.IsFatal(exception2)) { throw; } flag = true; exception = exception2; } if (flag) { asyncState.Complete(false, exception); } } }
private static void Begin2Callback(IAsyncResult result) { if (!result.CompletedSynchronously) { ChainedAsyncResult asyncState = (ChainedAsyncResult)result.AsyncState; Exception exception = null; try { asyncState.end2(result); } catch (Exception exception2) { if (Fx.IsFatal(exception2)) { throw; } exception = exception2; } asyncState.Complete(false, exception); } }