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;
}