Compartir a través de


RouterMiddleware(RequestDelegate, ILoggerFactory, IRouter) Constructor

Definición

Construye una nueva RouterMiddleware instancia con un 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

Delegado que representa el middleware restante en la canalización de solicitudes.

router
IRouter

que IRouter se va a usar para las solicitudes de enrutamiento.

Se aplica a