共用方式為


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 用於路由要求的 。

適用於