3 instantiations of ConcurrencyLimiterOptions
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptionsExtensions.cs (1)
115
var concurrencyLimiterOptions = new
ConcurrencyLimiterOptions
();
RateLimitingSample (1)
Program.cs (1)
39
return RateLimitPartition.GetConcurrencyLimiter<string>("globalLimiter", key => new
ConcurrencyLimiterOptions
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
52
_options = new
ConcurrencyLimiterOptions
9 references to ConcurrencyLimiterOptions
Microsoft.AspNetCore.RateLimiting (4)
RateLimiterOptionsExtensions.cs (4)
102
/// Registers a new <see cref="ConcurrencyLimiter"/> with the given <see cref="
ConcurrencyLimiterOptions
"/> to the application.
108
/// <param name="configureOptions">A callback to configure the <see cref="
ConcurrencyLimiterOptions
"/> to be used for the limiter.</param>
110
public static RateLimiterOptions AddConcurrencyLimiter(this RateLimiterOptions options, string policyName, Action<
ConcurrencyLimiterOptions
> configureOptions)
115
var
concurrencyLimiterOptions = new ConcurrencyLimiterOptions();
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (2)
24
private readonly
ConcurrencyLimiterOptions
_options;
40
public ConcurrencyLimiter(
ConcurrencyLimiterOptions
options)
System\Threading\RateLimiting\RateLimitPartition.cs (3)
29
/// Defines a partition with a <see cref="ConcurrencyLimiter"/> with the given <see cref="
ConcurrencyLimiterOptions
"/>.
33
/// <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="
ConcurrencyLimiterOptions
"/> across different calls.</param>
37
Func<TKey,
ConcurrencyLimiterOptions
> factory)