MapMiddleware Class¶
Respresents a middleware that maps a request path to a sub-request pipeline.
- Namespace
Microsoft.AspNetCore.Builder.Extensions
- Assemblies
- Microsoft.AspNetCore.Http.Abstractions
Constructors¶
-
MapMiddleware
(Microsoft.AspNetCore.Http.RequestDelegate, Microsoft.AspNetCore.Builder.Extensions.MapOptions)¶ Creates a new instace of
Microsoft.AspNetCore.Builder.Extensions.MapMiddleware
.Arguments: - next (Microsoft.AspNetCore.Http.RequestDelegate) – The delegate representing the next middleware in the request pipeline.
- options (Microsoft.AspNetCore.Builder.Extensions.MapOptions) – The middleware options.
public MapMiddleware(RequestDelegate next, MapOptions options)
-
Methods¶
-
Invoke
(Microsoft.AspNetCore.Http.HttpContext)¶ Executes the middleware.
Arguments: context (Microsoft.AspNetCore.Http.HttpContext) – The Microsoft.AspNetCore.Http.HttpContext
for the current request.Return type: System.Threading.Tasks.Task Returns: A task that represents the execution of this middleware. public Task Invoke(HttpContext context)
-