Class RateGateExtensions
- Namespace
 - Sportradar.LiveData.Sdk.Services.RateLimiter
 
- Assembly
 - Sportradar.LiveData.Sdk.dll
 
public static class RateGateExtensions
  - Inheritance
 - 
      
      RateGateExtensions
 
- Inherited Members
 
Methods
LimitRate<T>(IEnumerable<T>, string, int, TimeSpan)
Limits the rate at which the sequence is enumerated.
public static IEnumerable<T> LimitRate<T>(this IEnumerable<T> source, string name, int count, TimeSpan timeUnit)
  Parameters
sourceIEnumerable<T>The IEnumerable<T> whose enumeration is to be rate limited.
namestringRate limiter instance name
countintThe number of items in the sequence that are allowed to be processed per time unit.
timeUnitTimeSpanLength of the time unit.
Returns
- IEnumerable<T>
 An IEnumerable<T> containing the elements of the source sequence.
Type Parameters
TThe type of the elements of
source.