Share via


RouterMiddleware(RequestDelegate, ILoggerFactory, IRouter) Constructor

Definition

Constructs a new RouterMiddleware instance with a given 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)

Parameters

next
RequestDelegate

The delegate representing the remaining middleware in the request pipeline.

loggerFactory
ILoggerFactory

The ILoggerFactory.

router
IRouter

The IRouter to use for routing requests.

Applies to