ConcurrencyLimiterMiddleware Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new ConcurrencyLimiterMiddleware.
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))
Parameters
- next
- RequestDelegate
The RequestDelegate representing the next middleware in the pipeline.
- loggerFactory
- ILoggerFactory
The ILoggerFactory used for logging.
- queue
- IQueuePolicy
The queueing strategy to use for the server.
- options
- IOptions<ConcurrencyLimiterOptions>
The options for the middleware, currently containing the 'OnRejected' callback.