Aracılığıyla paylaş


Operation.WaitForCompletionResponseAsync Method

Definition

Overloads

WaitForCompletionResponseAsync(CancellationToken)

Periodically calls the server till the long-running operation completes.

WaitForCompletionResponseAsync(DelayStrategy, CancellationToken)

Periodically calls the server till the long-running operation completes.

WaitForCompletionResponseAsync(TimeSpan, CancellationToken)

Periodically calls the server till the long-running operation completes.

WaitForCompletionResponseAsync(CancellationToken)

Source:
Operation.cs

Periodically calls the server till the long-running operation completes.

public virtual System.Threading.Tasks.ValueTask<Azure.Response> WaitForCompletionResponseAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member WaitForCompletionResponseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response>
override this.WaitForCompletionResponseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response>
Public Overridable Function WaitForCompletionResponseAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response)

Parameters

cancellationToken
CancellationToken

A CancellationToken used for the periodical service calls.

Returns

The last HTTP response received from the server.

Remarks

This method will periodically call UpdateStatusAsync till HasCompleted is true, then return the final response of the operation.

Applies to

WaitForCompletionResponseAsync(DelayStrategy, CancellationToken)

Source:
Operation.cs

Periodically calls the server till the long-running operation completes.

public virtual System.Threading.Tasks.ValueTask<Azure.Response> WaitForCompletionResponseAsync (Azure.Core.DelayStrategy delayStrategy, System.Threading.CancellationToken cancellationToken = default);
abstract member WaitForCompletionResponseAsync : Azure.Core.DelayStrategy * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response>
override this.WaitForCompletionResponseAsync : Azure.Core.DelayStrategy * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response>
Public Overridable Function WaitForCompletionResponseAsync (delayStrategy As DelayStrategy, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response)

Parameters

delayStrategy
DelayStrategy

The strategy to use to determine the delay between status requests to the server. If the server returns retry-after header, the delay used will be the maximum specified by the strategy and the header value.

cancellationToken
CancellationToken

A CancellationToken used for the periodical service calls.

Returns

The last HTTP response received from the server.

Remarks

This method will periodically call UpdateStatusAsync till HasCompleted is true, then return the final response of the operation.

Applies to

WaitForCompletionResponseAsync(TimeSpan, CancellationToken)

Source:
Operation.cs

Periodically calls the server till the long-running operation completes.

public virtual System.Threading.Tasks.ValueTask<Azure.Response> WaitForCompletionResponseAsync (TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default);
abstract member WaitForCompletionResponseAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response>
override this.WaitForCompletionResponseAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response>
Public Overridable Function WaitForCompletionResponseAsync (pollingInterval As TimeSpan, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response)

Parameters

pollingInterval
TimeSpan

The interval between status requests to the server. The interval can change based on information returned from the server. For example, the server might communicate to the client that there is not reason to poll for status change sooner than some time.

cancellationToken
CancellationToken

A CancellationToken used for the periodical service calls.

Returns

The last HTTP response received from the server.

Remarks

This method will periodically call UpdateStatusAsync till HasCompleted is true, then return the final response of the operation.

Applies to