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

OnStepStateChanged() private method

private OnStepStateChanged ( object sender, StepExecutionChangedEventArgs args ) : void
sender object
args StepExecutionChangedEventArgs
return void
        private void OnStepStateChanged(object sender, StepExecutionChangedEventArgs args)
        {
            if (this.StepExecutionChangedPrivate != null)
            {
                VsThreadingHelper.RunInline(this, VsTaskRunContext.UIThreadNormalPriority,
                    () =>
                    {
                        var delegates = this.StepExecutionChangedPrivate;
                        if (delegates != null)
                        {
                            delegates(sender, args);
                            // Verify that the observer handled it since now easy way of testing
                            // serialized raising and handling of the event across the classes
                            args.CheckHandled();
                        }
                    });
            }
        }
    }