Table of Contents

ThrottleQuota Constructor

Definition

ThrottleQuota(int, double, TimeUnit)

Initializes a new instance of the ThrottleQuota class.

public ThrottleQuota(int rateLimit, double window, TimeUnit windowUnit)

Parameters

rateLimit int

The allowed rate from within a given window.

window double

The duration of the window.

windowUnit TimeUnit

One of the enumeration values that specifies the time unit of window.

ThrottleQuota(int, TimeSpan)

Initializes a new instance of the ThrottleQuota class.

public ThrottleQuota(int rateLimit, TimeSpan window)

Parameters

rateLimit int

The allowed rate from within a given window.

window TimeSpan

The duration of the window.