3 instantiations of TokenBucketRateLimiterOptions
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptionsExtensions.cs (1)
32var tokenBucketRateLimiterOptions = new TokenBucketRateLimiterOptions();
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
74options = new TokenBucketRateLimiterOptions
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
72_options = new TokenBucketRateLimiterOptions
14 references to TokenBucketRateLimiterOptions
Microsoft.AspNetCore.RateLimiting (5)
RateLimiterOptionsExtensions.cs (5)
15/// Registers a new <see cref="TokenBucketRateLimiter"/> with the given <see cref="TokenBucketRateLimiterOptions"/> to the application. 21/// <param name="configureOptions">A callback to configure the <see cref="TokenBucketRateLimiterOptions"/> to be used for the limiter.</param> 24/// Setting <see cref="TokenBucketRateLimiterOptions.AutoReplenishment"/> will have no effect here, as the <see cref="PartitionedRateLimiter"/> that this limiter is added to 27public static RateLimiterOptions AddTokenBucketLimiter(this RateLimiterOptions options, string policyName, Action<TokenBucketRateLimiterOptions> configureOptions) 32var tokenBucketRateLimiterOptions = new TokenBucketRateLimiterOptions();
System.Threading.RateLimiting (9)
System\Threading\RateLimiting\RateLimitPartition.cs (6)
55/// Defines a partition with a <see cref="TokenBucketRateLimiter"/> with the given <see cref="TokenBucketRateLimiterOptions"/>. 58/// Set <see cref="TokenBucketRateLimiterOptions.AutoReplenishment"/> to <see langword="false"/> to save an allocation. This method will create a new options type and set <see cref="TokenBucketRateLimiterOptions.AutoReplenishment"/> to <see langword="false"/> otherwise. 62/// <param name="factory">The function called when a rate limiter for the given <paramref name="partitionKey"/> is needed. This can return the same instance of <see cref="TokenBucketRateLimiterOptions"/> across different calls.</param> 66Func<TKey, TokenBucketRateLimiterOptions> factory) 70TokenBucketRateLimiterOptions options = factory(key);
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (3)
27private readonly TokenBucketRateLimiterOptions _options; 49public TokenBucketRateLimiter(TokenBucketRateLimiterOptions options) 264/// <see langword="false"/> if <see cref="TokenBucketRateLimiterOptions.AutoReplenishment"/> is enabled, otherwise <see langword="true"/>.