你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TriggerStopTriggerOperation.WaitForCompletionResponse Method

Definition

Overloads

Name Description
WaitForCompletionResponse(CancellationToken)

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

WaitForCompletionResponse(TimeSpan, CancellationToken)

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

WaitForCompletionResponse(CancellationToken)

Source:
TriggerStopTriggerOperation.cs

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

public override Azure.Response WaitForCompletionResponse(System.Threading.CancellationToken cancellationToken = default);
override this.WaitForCompletionResponse : System.Threading.CancellationToken -> Azure.Response
Public Overrides Function WaitForCompletionResponse (Optional cancellationToken As CancellationToken = Nothing) As 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

WaitForCompletionResponse(TimeSpan, CancellationToken)

Source:
TriggerStopTriggerOperation.cs

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

public override Azure.Response WaitForCompletionResponse(TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default);
override this.WaitForCompletionResponse : TimeSpan * System.Threading.CancellationToken -> Azure.Response
Public Overrides Function WaitForCompletionResponse (pollingInterval As TimeSpan, Optional cancellationToken As CancellationToken = Nothing) As 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