3 instantiations of FixedWindowRateLimiterOptions
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptionsExtensions.cs (1)
61
var fixedWindowRateLimiterOptions = new
FixedWindowRateLimiterOptions
();
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
67
_options = new
FixedWindowRateLimiterOptions
System\Threading\RateLimiting\RateLimitPartition.cs (1)
142
options = new
FixedWindowRateLimiterOptions
14 references to FixedWindowRateLimiterOptions
Microsoft.AspNetCore.RateLimiting (5)
RateLimiterOptionsExtensions.cs (5)
44
/// Registers a new <see cref="FixedWindowRateLimiter"/> with the given <see cref="
FixedWindowRateLimiterOptions
"/> to the application.
50
/// <param name="configureOptions">A callback to configure the <see cref="
FixedWindowRateLimiterOptions
"/> to be used for the limiter.</param>
53
/// Setting <see cref="
FixedWindowRateLimiterOptions
.AutoReplenishment"/> will have no effect here, as the <see cref="PartitionedRateLimiter"/> that this limiter is added to
56
public static RateLimiterOptions AddFixedWindowLimiter(this RateLimiterOptions options, string policyName, Action<
FixedWindowRateLimiterOptions
> configureOptions)
61
var
fixedWindowRateLimiterOptions = new FixedWindowRateLimiterOptions();
System.Threading.RateLimiting (9)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (3)
26
private readonly
FixedWindowRateLimiterOptions
_options;
48
public FixedWindowRateLimiter(
FixedWindowRateLimiterOptions
options)
258
/// False if <see cref="
FixedWindowRateLimiterOptions
.AutoReplenishment"/> is enabled, otherwise true.
System\Threading\RateLimiting\RateLimitPartition.cs (6)
123
/// Defines a partition with a <see cref="FixedWindowRateLimiter"/> with the given <see cref="
FixedWindowRateLimiterOptions
"/>.
126
/// Set <see cref="
FixedWindowRateLimiterOptions
.AutoReplenishment"/> to <see langword="false"/> to save an allocation. This method will create a new options type and set <see cref="
FixedWindowRateLimiterOptions
.AutoReplenishment"/> to <see langword="false"/> otherwise.
130
/// <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="
FixedWindowRateLimiterOptions
"/> across different calls.</param>
134
Func<TKey,
FixedWindowRateLimiterOptions
> factory)
138
FixedWindowRateLimiterOptions
options = factory(key);