private void AbortWorkflow(IProgressController controller, CancellationToken token) { bool aborted = controller.TryAbort(); Debug.Assert(aborted || token.IsCancellationRequested, "Failed to abort the workflow"); }