DurableHttpRequest Konstruktor

Definition

Initialisiert eine neue Instanz der DurableHttpRequest-Klasse.

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)

Parameter

method
HttpMethod

Methode, die für die HTTP-Anforderung verwendet wird.

uri
Uri

Der URI, der zum Ausführen der HTTP-Anforderung verwendet wird.

headers
IDictionary<String,StringValues>

Header, die der HTTP-Anforderung hinzugefügt wurden.

content
String

Inhalt, der dem Textkörper der HTTP-Anforderung hinzugefügt wurde.

tokenSource
ITokenSource

An die HTTP-Anforderung angefügte AAD-Authentifizierung.

asynchronousPatternEnabled
Boolean

Gibt an, ob durableHttpRequest das asynchrone Muster verarbeiten soll.

timeout
Nullable<TimeSpan>

TimeSpan für http-Anforderungstimeout.

httpRetryOptions
HttpRetryOptions

Wiederholungsoptionen, die für die HTTP-Anforderung verwendet werden.

Gilt für: