Compartir a través de


ConcurrencyLimiterMiddleware Constructor

Definición

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);
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);
new Microsoft.AspNetCore.ConcurrencyLimiter.ConcurrencyLimiterMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.ConcurrencyLimiter.IQueuePolicy * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.ConcurrencyLimiter.ConcurrencyLimiterOptions> -> Microsoft.AspNetCore.ConcurrencyLimiter.ConcurrencyLimiterMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, queue As IQueuePolicy, options As IOptions(Of ConcurrencyLimiterOptions))

Parámetros

next
RequestDelegate

RequestDelegate que representa el siguiente middleware de la canalización.

loggerFactory
ILoggerFactory

que ILoggerFactory se usa para el registro.

queue
IQueuePolicy

Estrategia de puesta en cola que se va a usar para el servidor.

options
IOptions<ConcurrencyLimiterOptions>

Las opciones del middleware, que actualmente contienen la devolución de llamada "OnRejected".

Se aplica a