FabricClient.QueryClient.GetServicePagedListAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetServicePagedListAsync(ServiceQueryDescription) |
Gets the details for all services of an application or just the specified services that match filters specified in query description (if any). If the services 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. |
GetServicePagedListAsync(ServiceQueryDescription, TimeSpan, CancellationToken) |
Gets the details for all services of an application or just the specified services that match filters specified in query description (if any). If the services 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. |
GetServicePagedListAsync(ServiceQueryDescription)
Gets the details for all services of an application or just the specified services that match filters specified in query description (if any). If the services 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.ServiceList> GetServicePagedListAsync (System.Fabric.Description.ServiceQueryDescription serviceQueryDescription);
member this.GetServicePagedListAsync : System.Fabric.Description.ServiceQueryDescription -> System.Threading.Tasks.Task<System.Fabric.Query.ServiceList>
Public Function GetServicePagedListAsync (serviceQueryDescription As ServiceQueryDescription) As Task(Of ServiceList)
Parameters
- serviceQueryDescription
- ServiceQueryDescription
The ServiceQueryDescription that determines which services should be queried.
Returns
A Task that represents the asynchronous query operation. The value of TResult parameter is a ServiceList that represents the list of services that respect the filters in the ServiceList and fit the page. If the provided query description has no matching services, it returns a list of 0 entries.
Exceptions
See https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ for handling common FabricClient failures.
See https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ for handling common FabricClient failures.
See also https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ for handling common FabricClient failures.
Applies to
GetServicePagedListAsync(ServiceQueryDescription, TimeSpan, CancellationToken)
Gets the details for all services of an application or just the specified services that match filters specified in query description (if any). If the services 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.ServiceList> GetServicePagedListAsync (System.Fabric.Description.ServiceQueryDescription serviceQueryDescription, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetServicePagedListAsync : System.Fabric.Description.ServiceQueryDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ServiceList>
Public Function GetServicePagedListAsync (serviceQueryDescription As ServiceQueryDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ServiceList)
Parameters
- serviceQueryDescription
- ServiceQueryDescription
The ServiceQueryDescription that determines which services should be queried.
- 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 query operation. The value of TResult parameter is a ServiceList that represents the list of services that respect the filters in the ServiceList and fit the page. If the provided query description has no matching services, it returns a list of 0 entries.
Exceptions
See https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ for handling common FabricClient failures.
See https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ for handling common FabricClient failures.
See also https://azure.microsoft.com/documentation/articles/service-fabric-errors-and-exceptions/ for handling common FabricClient failures.
Applies to
Azure SDK for .NET