FabricClient.QueryClient.GetServiceNameAsync(Guid, TimeSpan, CancellationToken) FabricClient.QueryClient.GetServiceNameAsync(Guid, TimeSpan, CancellationToken) Method

Definition

Gets the service name for the specified partition.

public System.Threading.Tasks.Task<System.Fabric.Query.ServiceNameResult> GetServiceNameAsync (Guid partitionId, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetServiceNameAsync : Guid * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ServiceNameResult>

Parameters

partitionId
Guid Guid

The id of the partition to get the service name for.

timeout
TimeSpan TimeSpan

Specifies the duration this operation has to complete before timing out.

cancellationToken
CancellationToken CancellationToken

Propagates notification that operations should be canceled.

Returns

A task that represents the asynchronous query operation.

The returned task contains the service name as ServiceNameResult.

Exceptions

See for handling common FabricClient failures.

See for handling common FabricClient failures.

See also for handling common FabricClient failures.

Applies to