3
3
4
4
namespace Microsoft . AspNetCore . Builder
5
5
{
6
- public static partial class RequestThrottlingExtensions
6
+ public static partial class ConcurrencyLimiterExtensions
7
7
{
8
- public static Microsoft . AspNetCore . Builder . IApplicationBuilder UseRequestThrottling ( this Microsoft . AspNetCore . Builder . IApplicationBuilder app ) { throw null ; }
8
+ public static Microsoft . AspNetCore . Builder . IApplicationBuilder UseConcurrencyLimiter ( this Microsoft . AspNetCore . Builder . IApplicationBuilder app ) { throw null ; }
9
9
}
10
10
}
11
- namespace Microsoft . AspNetCore . RequestThrottling
11
+ namespace Microsoft . AspNetCore . ConcurrencyLimiter
12
12
{
13
+ public partial class ConcurrencyLimiterMiddleware
14
+ {
15
+ public ConcurrencyLimiterMiddleware ( Microsoft . AspNetCore . Http . RequestDelegate next , Microsoft . Extensions . Logging . ILoggerFactory loggerFactory , Microsoft . AspNetCore . ConcurrencyLimiter . IQueuePolicy queue , Microsoft . Extensions . Options . IOptions < Microsoft . AspNetCore . ConcurrencyLimiter . ConcurrencyLimiterOptions > options ) { }
16
+ [ System . Diagnostics . DebuggerStepThroughAttribute ]
17
+ public System . Threading . Tasks . Task Invoke ( Microsoft . AspNetCore . Http . HttpContext context ) { throw null ; }
18
+ }
19
+ public partial class ConcurrencyLimiterOptions
20
+ {
21
+ public ConcurrencyLimiterOptions ( ) { }
22
+ public Microsoft . AspNetCore . Http . RequestDelegate OnRejected { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] set { } }
23
+ }
13
24
public partial interface IQueuePolicy
14
25
{
15
26
void OnExit ( ) ;
@@ -21,23 +32,12 @@ public QueuePolicyOptions() { }
21
32
public int MaxConcurrentRequests { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] set { } }
22
33
public int RequestQueueLimit { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] set { } }
23
34
}
24
- public partial class RequestThrottlingMiddleware
25
- {
26
- public RequestThrottlingMiddleware ( Microsoft . AspNetCore . Http . RequestDelegate next , Microsoft . Extensions . Logging . ILoggerFactory loggerFactory , Microsoft . AspNetCore . RequestThrottling . IQueuePolicy queue , Microsoft . Extensions . Options . IOptions < Microsoft . AspNetCore . RequestThrottling . RequestThrottlingOptions > options ) { }
27
- [ System . Diagnostics . DebuggerStepThroughAttribute ]
28
- public System . Threading . Tasks . Task Invoke ( Microsoft . AspNetCore . Http . HttpContext context ) { throw null ; }
29
- }
30
- public partial class RequestThrottlingOptions
31
- {
32
- public RequestThrottlingOptions ( ) { }
33
- public Microsoft . AspNetCore . Http . RequestDelegate OnRejected { [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] get { throw null ; } [ System . Runtime . CompilerServices . CompilerGeneratedAttribute ] set { } }
34
- }
35
35
}
36
36
namespace Microsoft . Extensions . DependencyInjection
37
37
{
38
38
public static partial class QueuePolicyServiceCollectionExtensions
39
39
{
40
- public static Microsoft . Extensions . DependencyInjection . IServiceCollection AddStackQueue ( this Microsoft . Extensions . DependencyInjection . IServiceCollection services , System . Action < Microsoft . AspNetCore . RequestThrottling . QueuePolicyOptions > configure ) { throw null ; }
41
- public static Microsoft . Extensions . DependencyInjection . IServiceCollection AddTailDropQueue ( this Microsoft . Extensions . DependencyInjection . IServiceCollection services , System . Action < Microsoft . AspNetCore . RequestThrottling . QueuePolicyOptions > configure ) { throw null ; }
40
+ public static Microsoft . Extensions . DependencyInjection . IServiceCollection AddStackQueue ( this Microsoft . Extensions . DependencyInjection . IServiceCollection services , System . Action < Microsoft . AspNetCore . ConcurrencyLimiter . QueuePolicyOptions > configure ) { throw null ; }
41
+ public static Microsoft . Extensions . DependencyInjection . IServiceCollection AddTailDropQueue ( this Microsoft . Extensions . DependencyInjection . IServiceCollection services , System . Action < Microsoft . AspNetCore . ConcurrencyLimiter . QueuePolicyOptions > configure ) { throw null ; }
42
42
}
43
43
}
0 commit comments