Share via


FabricClient.QueryClient.GetPartitionListAsync Method

Definition

Overloads

GetPartitionListAsync(Uri, Nullable<Guid>, TimeSpan, CancellationToken)

Gets the details for all partitions of a service or just the specified partition. If the partitions do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page.

GetPartitionListAsync(Uri, Nullable<Guid>, String, TimeSpan, CancellationToken)

Gets the details for all partitions of a service or just the specified partition. If the partitions do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page.

GetPartitionListAsync(Uri)

Gets the details for all partitions of a service. If the partitions do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page.

GetPartitionListAsync(Uri, Nullable<Guid>)

Gets the details for all partitions of a service or just the specified partition. If the partitions do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page.

GetPartitionListAsync(Uri, String)

Gets the details for all partitions of a service. If the partitions do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page.

GetPartitionListAsync(Uri, Nullable<Guid>, TimeSpan, CancellationToken)

Gets the details for all partitions of a service or just the specified partition. If the partitions do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page.

public System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList> GetPartitionListAsync (Uri serviceName, Guid? partitionIdFilter, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetPartitionListAsync : Uri * Nullable<Guid> * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList>
Public Function GetPartitionListAsync (serviceName As Uri, partitionIdFilter As Nullable(Of Guid), timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ServicePartitionList)

Parameters

serviceName
Uri

The name of the service.

partitionIdFilter
Nullable<Guid>

The partition ID of the partition to get details for.

timeout
TimeSpan

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

cancellationToken
CancellationToken

Propagates notification that operations should be canceled.

Returns

A task that represents the asynchronous query operation.

The returned task contains the list of partitions as ServicePartitionList.

Exceptions

Applies to

GetPartitionListAsync(Uri, Nullable<Guid>, String, TimeSpan, CancellationToken)

Gets the details for all partitions of a service or just the specified partition. If the partitions do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page.

public System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList> GetPartitionListAsync (Uri serviceName, Guid? partitionIdFilter, string continuationToken, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetPartitionListAsync : Uri * Nullable<Guid> * string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList>
Public Function GetPartitionListAsync (serviceName As Uri, partitionIdFilter As Nullable(Of Guid), continuationToken As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ServicePartitionList)

Parameters

serviceName
Uri

The name of the service.

partitionIdFilter
Nullable<Guid>

The partition ID of the partition to get details for.

continuationToken
String

The continuation token obtained from a previous query. This value can be passed along to this query to start where the last query left off. Not passing a continuation token means returned results start from the first page.

timeout
TimeSpan

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

cancellationToken
CancellationToken

Propagates notification that operation should be canceled.

Returns

A task that represents the asynchronous operation.

The returned task contains the list of partitions as ServicePartitionList.

Exceptions

Applies to

GetPartitionListAsync(Uri)

Gets the details for all partitions of a service. If the partitions do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page.

public System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList> GetPartitionListAsync (Uri serviceName);
member this.GetPartitionListAsync : Uri -> System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList>
Public Function GetPartitionListAsync (serviceName As Uri) As Task(Of ServicePartitionList)

Parameters

serviceName
Uri

The name of the service to get partitions for.

Returns

A task that represents the asynchronous query operation.

The returned task contains the list of partitions as ServicePartitionList.

Exceptions

This operation has a timeout of 60 seconds.

See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.

Applies to

GetPartitionListAsync(Uri, Nullable<Guid>)

Gets the details for all partitions of a service or just the specified partition. If the partitions do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page.

public System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList> GetPartitionListAsync (Uri serviceName, Guid? partitionIdFilter);
member this.GetPartitionListAsync : Uri * Nullable<Guid> -> System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList>
Public Function GetPartitionListAsync (serviceName As Uri, partitionIdFilter As Nullable(Of Guid)) As Task(Of ServicePartitionList)

Parameters

serviceName
Uri

The name of the service.

partitionIdFilter
Nullable<Guid>

The partition ID of the partition to get details for.

Returns

A task that represents the asynchronous query operation.

The returned task contains the list of partitions as ServicePartitionList.

Exceptions

This operation has a timeout of 60 seconds.

See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.

Applies to

GetPartitionListAsync(Uri, String)

Gets the details for all partitions of a service. If the partitions do not fit in a page, one page of results is returned as well as a continuation token which can be used to get the next page.

public System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList> GetPartitionListAsync (Uri serviceName, string continuationToken);
member this.GetPartitionListAsync : Uri * string -> System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList>
Public Function GetPartitionListAsync (serviceName As Uri, continuationToken As String) As Task(Of ServicePartitionList)

Parameters

serviceName
Uri

The name of the service.

continuationToken
String

The continuation token obtained from a previous query. This value can be passed along to this query to start where the last query left off. Not passing a continuation token means returned results start from the first page.

Returns

A task that represents the asynchronous operation.

The returned task contains the list of partitions as ServicePartitionList.

Exceptions

This operation has a timeout of 60 seconds.

See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.

Applies to