Skip to content

Throttle Constructors ​

Definition ​

  • Namespace: JASE
  • Assembly: JASE.Concurrency.dll

Throttle(int maxRequests, TimeSpan timeSpan) ​

csharp
Throttle(int maxRequests, TimeSpan timeSpan)

Initializes a new instance of the Throttle class with the specified maximum requests and time span.

Parameters ​

NameDescription
maxRequestsThe maximum number of requests allowed within the specified time span.
timeSpanThe time span during which the maximum number of requests is allowed.