/// <summary> /// Cancellation handler for CancellationToken /// </summary> /// <param name="obj">ConditionVariable object</param> private static void CancellationTokenCanceledEventHandler(object obj) { SignalWaiter signalWaiter = obj as SignalWaiter; TurboContract.Assert(signalWaiter != null, conditionString: "signalWaiter != null"); signalWaiter.SignalAll(); }
/// <summary> /// Cancellation handler for CancellationToken /// </summary> /// <param name="obj">ConditionVariable object</param> private static void CancellationTokenCanceledEventHandler(object obj) { SignalWaiter signalWaiter = obj as SignalWaiter; Debug.Assert(signalWaiter != null); signalWaiter.SignalAll(); }