Share via


IEndpointFilter.InvokeAsync Method

Definition

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.

next
EndpointFilterDelegate

The next filter in the pipeline.

Returns

An awaitable result of calling the handler and apply any modifications made by filters in the pipeline.

Applies to