FabricClient.InfrastructureServiceClient.InvokeInfrastructureCommandAsync Method

Definition

Overloads

InvokeInfrastructureCommandAsync(Uri, String)

Asynchronously invokes an administrative command on the given infrastructure service instance.

InvokeInfrastructureCommandAsync(Uri, String, TimeSpan, CancellationToken)

Asynchronously invokes an administrative command on an infrastructure service.

InvokeInfrastructureCommandAsync(Uri, String)

Asynchronously invokes an administrative command on the given infrastructure service instance.

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

Parameters

serviceName
System.Uri

The name of the target infrastructure service instance.

command
System.String

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

Returns

System.Threading.Tasks.Task<System.String>

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

InvokeInfrastructureCommandAsync(Uri, String, TimeSpan, CancellationToken)

Asynchronously invokes an administrative command on an infrastructure service.

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

Parameters

serviceName
System.Uri

The name of the target infrastructure service instance.

command
System.String

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

timeout
System.TimeSpan

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

cancellationToken
System.Threading.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

System.Threading.Tasks.Task<System.String>

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