<PackageReference Include="System.Threading.RateLimiting" Version="11.0.0-preview.1.26104.118" />

System.Threading.RateLimiting.ReplenishingRateLimiter

public abstract class ReplenishingRateLimiter : RateLimiter
Abstraction that specifies that the RateLimiter implementation is capable of replenishing tokens.
public abstract bool IsAutoReplenishing { get; }

Specifies if the ReplenishingRateLimiter is automatically replenishing its tokens or if it expects an external source to regularly call TryReplenish.

public abstract TimeSpan ReplenishmentPeriod { get; }

Specifies how often the ReplenishingRateLimiter will replenish tokens. If IsAutoReplenishing is false then this is how often TryReplenish should be called.

public abstract bool TryReplenish()

Attempts to replenish tokens.