Share via


LoadTestAdministrationClient.GetTriggerAsync Method

Definition

Overloads

Name Description
GetTriggerAsync(String, RequestContext)

[Protocol Method] Resource read operation template.

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

Resource read operation template.

GetTriggerAsync(String, RequestContext)

Source:
LoadTestAdministrationClient.cs

[Protocol Method] Resource read operation template.

  • 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> GetTriggerAsync(string triggerId, Azure.RequestContext context);
abstract member GetTriggerAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetTriggerAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetTriggerAsync (triggerId As String, context As RequestContext) As Task(Of Response)

Parameters

triggerId
String

The unique identifier of the trigger.

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

triggerId is null.

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

Service returned a non-success status code.

Applies to

GetTriggerAsync(String, CancellationToken)

Source:
LoadTestAdministrationClient.cs

Resource read operation template.

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

Parameters

triggerId
String

The unique identifier of the trigger.

cancellationToken
CancellationToken

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

Returns

Exceptions

triggerId is null.

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

Service returned a non-success status code.

Applies to