Partilhar via


IDurableOrchestrationContext.CallHttpAsync Método

Definição

Sobrecargas

CallHttpAsync(HttpMethod, Uri, String, HttpRetryOptions)

Faz uma chamada HTTP para o uri especificado.

CallHttpAsync(DurableHttpRequest)

Faz uma chamada HTTP usando as informações no DurableHttpRequest.

CallHttpAsync(HttpMethod, Uri, String, HttpRetryOptions)

Origem:
IDurableOrchestrationContext.cs

Faz uma chamada HTTP para o uri especificado.

public System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableHttpResponse> CallHttpAsync (System.Net.Http.HttpMethod method, Uri uri, string content = default, Microsoft.Azure.WebJobs.Extensions.DurableTask.HttpRetryOptions retryOptions = default);
abstract member CallHttpAsync : System.Net.Http.HttpMethod * Uri * string * Microsoft.Azure.WebJobs.Extensions.DurableTask.HttpRetryOptions -> System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableHttpResponse>
Public Function CallHttpAsync (method As HttpMethod, uri As Uri, Optional content As String = Nothing, Optional retryOptions As HttpRetryOptions = Nothing) As Task(Of DurableHttpResponse)

Parâmetros

method
HttpMethod

HttpMethod usado para chamada à API.

uri
Uri

uri usado para fazer a chamada HTTP.

content
String

Conteúdo passado na solicitação HTTP.

retryOptions
HttpRetryOptions

A opção de repetição para a tarefa HTTP.

Retornos

Um Task<TResult>resultado da chamada HTTP.

Aplica-se a

CallHttpAsync(DurableHttpRequest)

Origem:
IDurableOrchestrationContext.cs

Faz uma chamada HTTP usando as informações no DurableHttpRequest.

public System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableHttpResponse> CallHttpAsync (Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableHttpRequest req);
abstract member CallHttpAsync : Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableHttpRequest -> System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableHttpResponse>
Public Function CallHttpAsync (req As DurableHttpRequest) As Task(Of DurableHttpResponse)

Parâmetros

req
DurableHttpRequest

O DurableHttpRequest usado para fazer a chamada HTTP.

Retornos

Um Task<TResult>resultado da chamada HTTP.

Aplica-se a