Example #1
0
 public Logic(RestartWithBackoffFlow <TIn, TOut, TMat> stage, Attributes inheritedAttributes, string name)
     : base(name, stage.Shape, stage.In, stage.Out, stage.Settings, stage.OnlyOnFailures)
 {
     _inheritedAttributes = inheritedAttributes;
     _delay = _inheritedAttributes.GetAttribute <RestartWithBackoffFlow.Delay>(new RestartWithBackoffFlow.Delay(TimeSpan.FromMilliseconds(50))).Duration;
     _stage = stage;
     Backoff();
 }
Example #2
0
 public Logic(RestartWithBackoffFlow <TIn, TOut, TMat> stage, string name)
     : base(name, stage.Shape, stage.In, stage.Out, stage.MinBackoff, stage.MaxBackoff, stage.RandomFactor, stage.OnlyOnFailures, stage.MaxRestarts)
 {
     _stage = stage;
     Backoff();
 }
Example #3
0
 public Logic(RestartWithBackoffFlow <TIn, TOut, TMat> stage, string name)
     : base(name, stage.Shape, stage.MinBackoff, stage.MaxBackoff, stage.RandomFactor)
 {
     _stage = stage;
     Backoff();
 }