Partager via


ConcurrencyLimiterMiddleware Constructeur

Définition

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))

Paramètres

next
RequestDelegate

RequestDelegate représentant l’intergiciel suivant dans le pipeline.

loggerFactory
ILoggerFactory

utilisé pour la ILoggerFactory journalisation.

queue
IQueuePolicy

Stratégie de mise en file d’attente à utiliser pour le serveur.

options
IOptions<ConcurrencyLimiterOptions>

Options de l’intergiciel contenant actuellement le rappel « OnRejected ».

S’applique à