NetworkWatchersGetNetworkConfigurationDiagnosticOperation.WaitForCompletionAsync Method

Definition

Overloads

WaitForCompletionAsync(CancellationToken)

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

WaitForCompletionAsync(TimeSpan, CancellationToken)

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

WaitForCompletionAsync(CancellationToken)

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

public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.ResourceManager.Network.Models.NetworkConfigurationDiagnosticResponse>> WaitForCompletionAsync (System.Threading.CancellationToken cancellationToken = default);
override this.WaitForCompletionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response<Azure.ResourceManager.Network.Models.NetworkConfigurationDiagnosticResponse>>
Public Overrides Function WaitForCompletionAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response(Of NetworkConfigurationDiagnosticResponse))

Parameters

cancellationToken
CancellationToken

A CancellationToken used for the periodical service calls.

Returns

ValueTask<Response<NetworkConfigurationDiagnosticResponse>>

The last HTTP response received from the server.

Applies to

WaitForCompletionAsync(TimeSpan, CancellationToken)

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

public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.ResourceManager.Network.Models.NetworkConfigurationDiagnosticResponse>> WaitForCompletionAsync (TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default);
override this.WaitForCompletionAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Response<Azure.ResourceManager.Network.Models.NetworkConfigurationDiagnosticResponse>>
Public Overrides Function WaitForCompletionAsync (pollingInterval As TimeSpan, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Response(Of NetworkConfigurationDiagnosticResponse))

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

ValueTask<Response<NetworkConfigurationDiagnosticResponse>>

The last HTTP response received from the server.

Applies to