Freigeben über


IEndpointFilter.InvokeAsync Methode

Definition

Implementiert die Kernlogik, die dem Filter zugeordnet ist, und EndpointFilterInvocationContext der nächste Filter, der in der Pipeline aufgerufen werden soll.

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)

Parameter

context
EndpointFilterInvocationContext

Die EndpointFilterInvocationContext der aktuellen Anforderung/Antwort zugeordnete.

next
EndpointFilterDelegate

Der nächste Filter in der Pipeline.

Gibt zurück

Ein erwartetes Ergebnis des Aufrufens des Handlers und anwenden aller Änderungen, die von Filtern in der Pipeline vorgenommen werden.

Gilt für: