private void AbortWorkflow(IProgressController controller, CancellationToken token) { bool aborted = controller.TryAbort(); Debug.Assert(aborted || token.IsCancellationRequested, "Failed to abort the workflow"); this.host.SonarQubeService.Disconnect(); }
private void AbortWorkflow(IProgressController controller, CancellationToken token) { bool aborted = controller.TryAbort(); Debug.Assert(aborted || token.IsCancellationRequested, "Failed to abort the workflow"); }
public static ProgressObserver StartObserving(IProgressController controller, IProgressVisualizer visualizer, ProgressControllerViewModel state) { if (controller == null) { throw new ArgumentNullException(nameof(controller)); } if (visualizer == null) { throw new ArgumentNullException(nameof(visualizer)); } CheckSupportedController(controller); ProgressObserver observer = CreateAndConfigureInstance((IServiceProvider)controller, visualizer, controller.Events, new RelayCommand((s) => controller.TryAbort()), state); Debug.Assert(observer != null, "Failed to create observer on the UI thread"); return observer; }
private static void AbortWorkflow(IProgressController controller, CancellationToken token) { bool aborted = controller.TryAbort(); Debug.Assert(aborted || token.IsCancellationRequested, "Failed to abort the workflow"); }
public static ProgressObserver StartObserving(IProgressController controller, IProgressVisualizer visualizer, ProgressControllerViewModel state) { if (controller == null) { throw new ArgumentNullException(nameof(controller)); } if (visualizer == null) { throw new ArgumentNullException(nameof(visualizer)); } CheckSupportedController(controller); ProgressObserver observer = CreateAndConfigureInstance((IServiceProvider)controller, visualizer, controller.Events, new RelayCommand((s) => controller.TryAbort()), state); Debug.Assert(observer != null, "Failed to create observer on the UI thread"); return(observer); }