SonarLint.VisualStudio.Progress.Controller.ProgressControllerStep.OnExecutionStateChanged C# (CSharp) Method

OnExecutionStateChanged() protected method

Invokes the StateChanged event based on the ExecutionState of the object
protected OnExecutionStateChanged ( ) : void
return void
        protected virtual void OnExecutionStateChanged()
        {
            if (this.StateChangedPrivate != null)
            {
                VsThreadingHelper.RunInline(this.controller, VsTaskRunContext.UIThreadBackgroundPriority,
                    () =>
                    {
                        var delegates = this.StateChangedPrivate;
                        if (delegates != null)
                        {
                            delegates(this, new StepExecutionChangedEventArgs(this));
                        }
                    });
            }
        }
    }