IDurableOrchestrationContext.CallHttpAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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)
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
The DurableHttpRequest used to make the HTTP call.
Returns
A Task<TResult>Result of the HTTP call.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for