SonarLint.VisualStudio.Progress.Controller.SequentialProgressController.ConfigureStepEventListeners C# (CSharp) Method

ConfigureStepEventListeners() private method

private ConfigureStepEventListeners ( bool start ) : void
start bool
return void
        private void ConfigureStepEventListeners(bool start)
        {
            ThreadHelper.ThrowIfNotOnUIThread();
            foreach (IProgressStepOperation stepOperation in this.progressStepOperations)
            {
                if (start)
                {
                    stepOperation.Step.StateChanged += this.OnStepStateChanged;
                }
                else
                {
                    stepOperation.Step.StateChanged -= this.OnStepStateChanged;
                }
            }
        }