Example #1
0
 public TranslatingLimiter(PartitionedRateLimiter <TInner> inner, Func <TResource, TInner> keyAdapter, bool leaveOpen)
 {
     _innerRateLimiter    = inner;
     _keyAdapter          = keyAdapter;
     _disposeInnerLimiter = !leaveOpen;
 }
Example #2
0
 public TranslatingLimiter(PartitionedRateLimiter <TInner> inner, Func <TResource, TInner> keyAdapter)
 {
     _innerRateLimiter = inner;
     _keyAdapter       = keyAdapter;
 }