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