示例#1
0
 internal RunControlAttemptSuccess(IRunControlAttemptProperties props, TimeSpan duration, bool isMaster)
     : base(props: props)
 {
     if (duration < TimeSpan.Zero)
     {
         throw new ArgumentOutOfRangeException(paramName: nameof(duration));
     }
     //
     Duration = duration;
     IsMaster = isMaster;
 }
示例#2
0
		protected RunControlAttemptPropertiesBase(IRunControlAttemptProperties props)
			: this(runControl: props.EnsureNotNull(nameof(props)).Value.RunControl, isStart: props.IsStart, attemptNumber: props.AttemptNumber, succeededAttemptCountBefore: props.SucceededAttemptCountBefore, correlationId: props.CorrelationId, tag: props.Tag) { }