SonarLint.VisualStudio.Integration.Binding.BindingWorkflow.Run C# (CSharp) Method

Run() public method

public Run ( ) : IProgressEvents
return IProgressEvents
        public IProgressEvents Run()
        {
            Debug.Assert(this.host.ActiveSection != null, "Expect the section to be attached at least until this method returns");
            Debug.Assert(this.projectSystem.GetSolutionProjects().Any(), "Expecting projects in solution");

            IProgressEvents progress = ProgressStepRunner.StartAsync(this.host,
                this.host.ActiveSection.ProgressHost,
                controller => this.CreateWorkflowSteps(controller));

            this.DebugOnly_MonitorProgress(progress);

            return progress;
        }

Usage Example

        void IBindingWorkflowExecutor.BindProject(BindCommandArgs bindingArgs)
        {
            var bindingProcess = CreateBindingProcess(host, bindingArgs);
            var workflow       = new BindingWorkflow(host, bindingProcess);

            IProgressEvents progressEvents = workflow.Run();

            Debug.Assert(progressEvents != null, "BindingWorkflow.Run returned null");
            this.SetBindingInProgress(progressEvents, bindingArgs);
        }
All Usage Examples Of SonarLint.VisualStudio.Integration.Binding.BindingWorkflow::Run