BlobRequestOptions.ServerTimeout プロパティ

定義

1 つの HTTP 要求のサーバー タイムアウト間隔を取得または設定します。

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

プロパティ値

TimeSpan各 HTTP 要求のサーバー タイムアウト間隔を含む 。

実装


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);

注釈

サーバーのタイムアウトは、作成された REST 要求ごとに Azure Storage サービスに送信されるタイムアウトです。 呼び出された API が複数の REST 呼び出しを行う場合 (UploadFromStream など)、または要求が再試行された場合、このタイムアウトは各要求に個別に適用されます。 この値は、クライアントで追跡または検証されず、ストレージ サービスにのみ渡されます。

適用対象