BlobRequestOptions.MaximumExecutionTime プロパティ

定義

要求の実行される可能性のある再試行すべての最大実行時間を取得または設定します。

public TimeSpan? MaximumExecutionTime { get; set; }
member this.MaximumExecutionTime : Nullable<TimeSpan> with get, set
Public Property MaximumExecutionTime As Nullable(Of TimeSpan)

プロパティ値

要求の再試行の最大実行時間を表す TimeSpan です。

実装


BlobRequestOptions timeoutRequestOptions = new BlobRequestOptions()
{
    // Each REST operation will timeout after 5 seconds.
    ServerTimeout = TimeSpan.FromSeconds(5),

    // Allot 30 seconds for this API call, including retries
    MaximumExecutionTime = TimeSpan.FromSeconds(30)
};

byteCount = blob.DownloadToByteArray(destinationArray, index: 0, accessCondition: null, options: timeoutRequestOptions);

注釈

最大実行時間は、1 つの API 呼び出しに割り当てられた時間です。 すべての REST 要求、再試行などで API に費やされた合計時間がこの値を超えると、クライアントはタイムアウトします。 この値はクライアントでのみ追跡され、サービスには送信されません。

適用対象