语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

InvocationHandler.GetAsync Method

Definition

Handles GET /invocations/{invocationId}. Returns 404 by default. Override to support polling for async/LRO invocations.

public virtual System.Threading.Tasks.Task GetAsync(string invocationId, Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.AspNetCore.Http.HttpResponse response, Azure.AI.AgentServer.Invocations.InvocationContext context, System.Threading.CancellationToken cancellationToken);
abstract member GetAsync : string * Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * Azure.AI.AgentServer.Invocations.InvocationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.GetAsync : string * Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * Azure.AI.AgentServer.Invocations.InvocationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function GetAsync (invocationId As String, request As HttpRequest, response As HttpResponse, context As InvocationContext, cancellationToken As CancellationToken) As Task

Parameters

invocationId
String

The invocation identifier.

request
HttpRequest

The incoming HTTP request.

response
HttpResponse

The outgoing HTTP response.

context
InvocationContext

Per-request context with platform identity, headers, and query parameters.

cancellationToken
CancellationToken

A token to observe for cancellation.

Returns

A task representing the async operation.

Applies to