4 instantiations of SlidingWindowRateLimiterOptions
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptionsExtensions.cs (1)
90var slidingWindowRateLimiterOptions = new SlidingWindowRateLimiterOptions();
RateLimitingSample (1)
SampleRateLimiterPolicy.cs (1)
28return RateLimitPartition.GetSlidingWindowLimiter<string>(string.Empty, key => new SlidingWindowRateLimiterOptions
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
108options = new SlidingWindowRateLimiterOptions
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
74_options = new SlidingWindowRateLimiterOptions
14 references to SlidingWindowRateLimiterOptions
Microsoft.AspNetCore.RateLimiting (5)
RateLimiterOptionsExtensions.cs (5)
73/// Registers a new <see cref="SlidingWindowRateLimiter"/> with the given <see cref="SlidingWindowRateLimiterOptions"/> to the application. 79/// <param name="configureOptions">A callback to configure the <see cref="SlidingWindowRateLimiterOptions"/> to be used for the limiter.</param> 82/// Setting <see cref="SlidingWindowRateLimiterOptions.AutoReplenishment"/> will have no effect here, as the <see cref="PartitionedRateLimiter"/> that this limiter is added to 85public static RateLimiterOptions AddSlidingWindowLimiter(this RateLimiterOptions options, string policyName, Action<SlidingWindowRateLimiterOptions> configureOptions) 90var slidingWindowRateLimiterOptions = new SlidingWindowRateLimiterOptions();
System.Threading.RateLimiting (9)
System\Threading\RateLimiting\RateLimitPartition.cs (6)
89/// Defines a partition with a <see cref="SlidingWindowRateLimiter"/> with the given <see cref="SlidingWindowRateLimiterOptions"/>. 92/// Set <see cref="SlidingWindowRateLimiterOptions.AutoReplenishment"/> to <see langword="false"/> to save an allocation. This method will create a new options type and set <see cref="SlidingWindowRateLimiterOptions.AutoReplenishment"/> to <see langword="false"/> otherwise. 96/// <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="SlidingWindowRateLimiterOptions"/> across different calls.</param> 100Func<TKey, SlidingWindowRateLimiterOptions> factory) 104SlidingWindowRateLimiterOptions options = factory(key);
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (3)
28private readonly SlidingWindowRateLimiterOptions _options; 51public SlidingWindowRateLimiter(SlidingWindowRateLimiterOptions options) 261/// False if <see cref="SlidingWindowRateLimiterOptions.AutoReplenishment"/> is enabled, otherwise true.