Exemple #1
0
 public RunningTaskState(
     ITaskRunInvoker invoker,
     ITaskStateToggle stateToggle)
 {
     _TaskInvoker = invoker;
     _StateToggle = stateToggle;
 }
 public RunningTaskOpenState(
     ITaskRunInvoker invoker,
     ITaskStateToggle stateToggle,
     TimeSpan resetTimeout) : base(invoker, stateToggle)
 {
     _ReTimeOut = resetTimeout;
 }
 public RunningTaskHalfOpenState(
     ITaskRunInvoker invoker,
     ITaskStateToggle stateToggle,
     TimeSpan timeout) : base(invoker, stateToggle)
 {
     _TimeOut = timeout;
 }
Exemple #4
0
 public RunningTaskCloseState(
     ITaskRunInvoker invoker,
     ITaskStateToggle stateToggle,
     FailureRetrySeverity failureSeverity,
     TimeSpan timeout)
     : base(invoker, stateToggle)
 {
     _TimeOut = timeout;
     _FailureRetrySeverity = failureSeverity;
 }