RouterMiddleware(RequestDelegate, ILoggerFactory, IRouter) 构造函数

定义

使用给定 router的 构造新RouterMiddleware实例。

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)

参数

next
RequestDelegate

表示请求管道中剩余中间件的委托。

loggerFactory
ILoggerFactory

ILoggerFactory

router
IRouter

IRouter要用于路由请求的 。

适用于