Table of Contents

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

name string
rate_gates RateGate[]

Properties

Name

Name of this AndRateGate instance

public string Name { get; }

Property Value

string

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_disposing bool

Whether this object is being disposed.

Peek()

public TimeSpan Peek()

Returns

TimeSpan

WaitToProceed(int)

Blocks the current thread indefinitely until allowed to proceed.

public void WaitToProceed(int count)

Parameters

count int

Number 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

timeout TimeSpan

Timeout

count int

Number of occurences

Returns

bool

true if the thread is allowed to proceed, or false if timed out