共用方式為


IDurableOrchestrationContext.CallHttpAsync Method

Definition

Overloads

CallHttpAsync(HttpMethod, Uri, String, HttpRetryOptions)

Makes an HTTP call to the specified uri.

CallHttpAsync(DurableHttpRequest)

Makes an HTTP call using the information in the DurableHttpRequest.

CallHttpAsync(HttpMethod, Uri, String, HttpRetryOptions)

Source:
IDurableOrchestrationContext.cs

Makes an HTTP call to the specified uri.

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)

Parameters

method
HttpMethod

HttpMethod used for api call.

uri
Uri

uri used to make the HTTP call.

content
String

Content passed in the HTTP request.

retryOptions
HttpRetryOptions

The retry option for the HTTP task.

Returns

A Task<TResult>Result of the HTTP call.

Applies to

CallHttpAsync(DurableHttpRequest)

Source:
IDurableOrchestrationContext.cs

Makes an HTTP call using the information in the 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)

Parameters

req
DurableHttpRequest

The DurableHttpRequest used to make the HTTP call.

Returns

A Task<TResult>Result of the HTTP call.

Applies to