IEndpointFilter.InvokeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements the core logic associated with the filter given a EndpointFilterInvocationContext and the next filter to call in the pipeline.
public System.Threading.Tasks.ValueTask<object?> InvokeAsync (Microsoft.AspNetCore.Http.EndpointFilterInvocationContext context, Microsoft.AspNetCore.Http.EndpointFilterDelegate next);
abstract member InvokeAsync : Microsoft.AspNetCore.Http.EndpointFilterInvocationContext * Microsoft.AspNetCore.Http.EndpointFilterDelegate -> System.Threading.Tasks.ValueTask<obj>
Public Function InvokeAsync (context As EndpointFilterInvocationContext, next As EndpointFilterDelegate) As ValueTask(Of Object)
Parameters
- context
- EndpointFilterInvocationContext
The EndpointFilterInvocationContext associated with the current request/response.
The next filter in the pipeline.
Returns
An awaitable result of calling the handler and apply any modifications made by filters in the pipeline.