SlidingWindowRateLimiterOptions.AutoReplenishment 属性

定义

指定 是 SlidingWindowRateLimiter 自动补充请求计数器,还是其他人将调用 TryReplenish() 以补充令牌。

public bool AutoReplenishment { get; set; }
member this.AutoReplenishment : bool with get, set
Public Property AutoReplenishment As Boolean

属性值

默认值为 true

适用于