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 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); } }