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

InitializeSolutionBindingOnUIThread() private method

private InitializeSolutionBindingOnUIThread ( IProgressStepExecutionEvents notificationEvents ) : void
notificationEvents IProgressStepExecutionEvents
return void
        private void InitializeSolutionBindingOnUIThread(IProgressStepExecutionEvents notificationEvents)
        {
            Debug.Assert(System.Windows.Application.Current?.Dispatcher.CheckAccess() ?? false, "Expected to run on UI thread");

            notificationEvents.ProgressChanged(Strings.RuleSetGenerationProgressMessage);

            this.solutionBindingOperation.RegisterKnownRuleSets(this.Rulesets);
            this.solutionBindingOperation.Initialize(this.BindingProjects, this.QualityProfiles);
        }