Aracılığıyla paylaş


ConcurrencyLimiterMiddleware Oluşturucu

Tanım

Yeni bir ConcurrencyLimiterMiddleware oluşturur.

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

Parametreler

next
RequestDelegate

İşlem RequestDelegate hattında sonraki ara yazılımı temsil eden.

loggerFactory
ILoggerFactory

Günlük ILoggerFactory için kullanılan.

queue
IQueuePolicy

Sunucu için kullanılacak kuyruğa alma stratejisi.

options
IOptions<ConcurrencyLimiterOptions>

Şu anda 'OnRejected' geri çağırmasını içeren ara yazılım seçenekleri.

Şunlara uygulanır