Condividi tramite


RouterMiddleware(RequestDelegate, ILoggerFactory, IRouter) Costruttore

Definizione

Costruisce una nuova RouterMiddleware istanza con un determinato routeroggetto .

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)

Parametri

next
RequestDelegate

Delegato che rappresenta il middleware rimanente nella pipeline della richiesta.

loggerFactory
ILoggerFactory

Oggetto ILoggerFactory.

router
IRouter

Oggetto IRouter da utilizzare per il routing delle richieste.

Si applica a