Compartilhar via


RouterMiddleware(RequestDelegate, ILoggerFactory, IRouter) Construtor

Definição

Constrói uma nova RouterMiddleware instância com um determinado router.

public:
 RouterMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::Routing::IRouter ^ router);
public RouterMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Routing.IRouter router);
new Microsoft.AspNetCore.Builder.RouterMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.Routing.IRouter -> Microsoft.AspNetCore.Builder.RouterMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, router As IRouter)

Parâmetros

next
RequestDelegate

O delegado que representa o middleware restante no pipeline de solicitação.

loggerFactory
ILoggerFactory

O ILoggerFactory.

router
IRouter

O IRouter a ser usado para solicitações de roteamento.

Aplica-se a