Class AndRateGate
- Namespace
- Sportradar.LiveData.Sdk.Services.RateLimiter
- Assembly
- Sportradar.LiveData.Sdk.dll
public class AndRateGate : IRateGate, IDisposable
- Inheritance
-
AndRateGate
- Implements
- Inherited Members
Constructors
AndRateGate(string, params RateGate[])
public AndRateGate(string name, params RateGate[] rate_gates)
Parameters
Properties
Name
Name of this AndRateGate instance
public string Name { get; }
Property Value
Methods
Dispose()
Releases unmanaged resources held by an instance of this class.
public void Dispose()
Dispose(bool)
Releases unmanaged resources held by an instance of this class.
protected virtual void Dispose(bool is_disposing)
Parameters
is_disposingboolWhether this object is being disposed.
Peek()
public TimeSpan Peek()
Returns
WaitToProceed(int)
Blocks the current thread indefinitely until allowed to proceed.
public void WaitToProceed(int count)
Parameters
countintNumber of occurences
WaitToProceed(TimeSpan, int)
Blocks the current thread until allowed to proceed or until the specified timeout elapses.
public bool WaitToProceed(TimeSpan timeout, int count)
Parameters
Returns
- bool
true if the thread is allowed to proceed, or false if timed out