SonarLint.VisualStudio.Progress.Controller.DeterminateStepProgressNotifier.DeterminateStepProgressNotifier C# (CSharp) Method

DeterminateStepProgressNotifier() public method

Creates an instance of DeterminateStepProgressNotifier
public DeterminateStepProgressNotifier ( IProgressStepExecutionEvents executionEvents, int numberOfIncrements ) : System
executionEvents IProgressStepExecutionEvents Required
numberOfIncrements int The number of predefined increments to the progress, at least one is expected.
return System
        public DeterminateStepProgressNotifier(IProgressStepExecutionEvents executionEvents, int numberOfIncrements)
        {
            if (executionEvents == null)
            {
                throw new ArgumentNullException(nameof(executionEvents));
            }

            if (numberOfIncrements < 1)
            {
                throw new ArgumentOutOfRangeException(nameof(numberOfIncrements));
            }

            this.executionEvents = executionEvents;
            this.maxNumberOfIncrements = numberOfIncrements;
        }