Click or drag to resize

RateLimiterUpdateLimits Method

Updates the limits associated with this rate limiter. Note, after this update, the tokens will be completely resupplied.

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
Syntax
public void UpdateLimits(
	double tokensPerSecond,
	int maxTokensQueue
)
View Source

Parameters

tokensPerSecond  Double
The number of tokens per second that can be generated. Must be greater than zero and less than 1 billion
maxTokensQueue  Int32
The maximum number of tokens in the queue. Must be at least 1
See Also