DurableHttpRequest Constructor
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.
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.
- httpRetryOptions
- HttpRetryOptions
Retry options used for the HTTP request.
Applies to
Azure SDK for .NET