Delen via


FabricClient.InfrastructureServiceClient.InvokeInfrastructureQueryAsync Method

Definition

Overloads

InvokeInfrastructureQueryAsync(Uri, String)

Asynchronously invokes a read-only query on the given infrastructure service instance.

InvokeInfrastructureQueryAsync(Uri, String, TimeSpan, CancellationToken)

Asynchronously invokes a read-only query on the given infrastructure service instance.

InvokeInfrastructureQueryAsync(Uri, String)

Asynchronously invokes a read-only query on the given infrastructure service instance.

public System.Threading.Tasks.Task<string> InvokeInfrastructureQueryAsync (Uri serviceName, string command);
member this.InvokeInfrastructureQueryAsync : Uri * string -> System.Threading.Tasks.Task<string>
Public Function InvokeInfrastructureQueryAsync (serviceName As Uri, command As String) As Task(Of String)

Parameters

serviceName
Uri

The name of the target infrastructure service instance.

command
String

The text of the command to be invoked. The content of the command is infrastructure-specific.

Returns

The response from the infrastructure service. The response format is a JSON string. The contents of the response depend on which command was issued.

Applies to

InvokeInfrastructureQueryAsync(Uri, String, TimeSpan, CancellationToken)

Asynchronously invokes a read-only query on the given infrastructure service instance.

public System.Threading.Tasks.Task<string> InvokeInfrastructureQueryAsync (Uri serviceName, string command, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.InvokeInfrastructureQueryAsync : Uri * string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function InvokeInfrastructureQueryAsync (serviceName As Uri, command As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of String)

Parameters

serviceName
Uri

The name of the target infrastructure service instance.

command
String

The text of the command to be invoked. The content of the command is infrastructure-specific.

timeout
TimeSpan

The maximum amount of time Service Fabric will allow this operation to continue before returning a TimeoutException.

cancellationToken
CancellationToken

The optional cancellation token that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation may still be completed even if it is cancelled.

Returns

The response from the infrastructure service. The response format is a JSON string. The contents of the response depend on which command was issued.

Applies to