public RetryPolicy(string condition, int count, TimeSpan interval, bool?firstFastRetry = null) : base("retry")
 {
     Attributes.Add("condition", condition);
     Attributes.Add("count", count.ToString());
     Attributes.Add("interval", interval.GetSeconds());
     if (firstFastRetry != null)
     {
         Attributes.Add("first-fast-retry", BoolMapper.Map(firstFastRetry.Value));
     }
 }
Example #2
0
 protected TAttributesBuilder AddAttribute(string name, bool value)
 {
     return(AddAttribute(name, BoolMapper.Map(value)));
 }