Share via


LoadTestAdministrationClient.GetOperationStatusAsync Method

Definition

Overloads

Name Description
GetOperationStatusAsync(String, RequestContext)

[Protocol Method] Get the status of a long running operation.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetOperationStatusAsync(String, CancellationToken)

Get the status of a long running operation.

GetOperationStatusAsync(String, RequestContext)

Source:
LoadTestAdministrationClient.cs

[Protocol Method] Get the status of a long running operation.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> GetOperationStatusAsync(string operationId, Azure.RequestContext context);
abstract member GetOperationStatusAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetOperationStatusAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetOperationStatusAsync (operationId As String, context As RequestContext) As Task(Of Response)

Parameters

operationId
String

The unique ID of the operation.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

operationId is null.

operationId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetOperationStatusAsync(String, CancellationToken)

Source:
LoadTestAdministrationClient.cs

Get the status of a long running operation.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Developer.LoadTesting.OperationStatus>> GetOperationStatusAsync(string operationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOperationStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Developer.LoadTesting.OperationStatus>>
override this.GetOperationStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Developer.LoadTesting.OperationStatus>>
Public Overridable Function GetOperationStatusAsync (operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of OperationStatus))

Parameters

operationId
String

The unique ID of the operation.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

operationId is null.

operationId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to