Beispiel #1
0
 public StepBalancer(int maxConcurrentWorking, string balancingActionName, StepDefinition stepDefinition)
 {
     _cancellationToken    = _cancelTokenSource.Token;
     _maxConcurrentWorking = maxConcurrentWorking;
     _balancingActionName  = balancingActionName;
     this.stepDefinition   = stepDefinition;
 }
Beispiel #2
0
        public ProcessingStep(StepDefinition definition)
        {
            if (definition == null)
            {
                throw new ArgumentNullException(nameof(definition));
            }

            _minimalTimeProcessing = definition.MinimalTimeProcessing;
            // Add one because random generator maximum value is exclusive
            _maximalTimeProcessing = definition.MaximalTimeProcessing + 1;
        }