Share via


DurableHttpRequest Constructor

Definition

Initializes a new instance of the DurableHttpRequest class.

public DurableHttpRequest (System.Net.Http.HttpMethod method, Uri uri, System.Collections.Generic.IDictionary<string,Microsoft.Extensions.Primitives.StringValues> headers = default, string content = default, Microsoft.Azure.WebJobs.Extensions.DurableTask.ITokenSource tokenSource = default, bool asynchronousPatternEnabled = true, TimeSpan? timeout = default, Microsoft.Azure.WebJobs.Extensions.DurableTask.HttpRetryOptions httpRetryOptions = default);
new Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableHttpRequest : System.Net.Http.HttpMethod * Uri * System.Collections.Generic.IDictionary<string, Microsoft.Extensions.Primitives.StringValues> * string * Microsoft.Azure.WebJobs.Extensions.DurableTask.ITokenSource * bool * Nullable<TimeSpan> * Microsoft.Azure.WebJobs.Extensions.DurableTask.HttpRetryOptions -> Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableHttpRequest
Public Sub New (method As HttpMethod, uri As Uri, Optional headers As IDictionary(Of String, StringValues) = Nothing, Optional content As String = Nothing, Optional tokenSource As ITokenSource = Nothing, Optional asynchronousPatternEnabled As Boolean = true, Optional timeout As Nullable(Of TimeSpan) = Nothing, Optional httpRetryOptions As HttpRetryOptions = Nothing)

Parameters

method
HttpMethod

Method used for HTTP request.

uri
Uri

Uri used to make the HTTP request.

headers
IDictionary<String,StringValues>

Headers added to the HTTP request.

content
String

Content added to the body of the HTTP request.

tokenSource
ITokenSource

AAD authentication attached to the HTTP request.

asynchronousPatternEnabled
Boolean

Specifies whether the DurableHttpRequest should handle the asynchronous pattern.

timeout
Nullable<TimeSpan>

TimeSpan used for HTTP request timeout.

httpRetryOptions
HttpRetryOptions

Retry options used for the HTTP request.

Applies to