Bagikan melalui


RouterMiddleware(RequestDelegate, ILoggerFactory, IRouter) Konstruktor

Definisi

Membuat instans baru RouterMiddleware dengan .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)

Parameter

next
RequestDelegate

Delegasi yang mewakili middleware yang tersisa dalam alur permintaan.

router
IRouter

yang IRouter digunakan untuk permintaan perutean.

Berlaku untuk