예제 #1
0
 /// <param name="tailDivisionFactor">A division factor for <see cref="EqualTimeoutsProvider"/></param>
 /// <param name="firstTimeouts">A list of timeouts which will be returned for first requests.</param>
 public FixedThenEqualTimeoutsProvider(int tailDivisionFactor, [NotNull] params TimeSpan[] firstTimeouts)
 {
     equalProvider      = new EqualTimeoutsProvider(tailDivisionFactor);
     fixedProvider      = new FixedTimeoutsProvider(firstTimeouts);
     fixedTimeoutsCount = firstTimeouts.Length;
 }
예제 #2
0
 /// <param name="tailDivisionFactor">A division factor for <see cref="EqualTimeoutsProvider"/>.</param>
 /// <param name="firstTimeouts">An external delegates which will be used to obtain first request timeouts.</param>
 public AdHocThenEqualTimeoutsProvider(int tailDivisionFactor, [NotNull] params Func <TimeSpan>[] firstTimeouts)
 {
     equalProvider      = new EqualTimeoutsProvider(tailDivisionFactor);
     adHocProvider      = new AdHocTimeoutsProvider(firstTimeouts);
     fixedTimeoutsCount = firstTimeouts.Length;
 }