Bagikan melalui


ConcurrencyLimiterMiddleware Konstruktor

Definisi

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

Parameter

next
RequestDelegate

RequestDelegate mewakili middleware berikutnya dalam alur.

loggerFactory
ILoggerFactory

yang ILoggerFactory digunakan untuk pengelogan.

queue
IQueuePolicy

Strategi antrean yang digunakan untuk server.

options
IOptions<ConcurrencyLimiterOptions>

Opsi untuk middleware, saat ini berisi panggilan balik 'OnRejected'.

Berlaku untuk