Dela via


FabricClient.QueryClient.GetServiceTypeListAsync Method

Definition

Overloads

GetServiceTypeListAsync(String, String)

Gets the list of service types.

GetServiceTypeListAsync(String, String, String)

Gets the list of service types.

GetServiceTypeListAsync(String, String, String, TimeSpan, CancellationToken)

Gets the list of service types.

GetServiceTypeListAsync(String, String)

Gets the list of service types.

public System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList> GetServiceTypeListAsync (string applicationTypeName, string applicationTypeVersion);
member this.GetServiceTypeListAsync : string * string -> System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList>
Public Function GetServiceTypeListAsync (applicationTypeName As String, applicationTypeVersion As String) As Task(Of ServiceTypeList)

Parameters

applicationTypeName
String

The type name of the application to get service types for.

applicationTypeVersion
String

The application type version to get service types for.

Returns

A task that represents the asynchronous query operation.

The returned task contains the list of service types as ServiceTypeList.

Exceptions

Applies to

GetServiceTypeListAsync(String, String, String)

Gets the list of service types.

public System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList> GetServiceTypeListAsync (string applicationTypeName, string applicationTypeVersion, string serviceTypeNameFilter);
member this.GetServiceTypeListAsync : string * string * string -> System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList>
Public Function GetServiceTypeListAsync (applicationTypeName As String, applicationTypeVersion As String, serviceTypeNameFilter As String) As Task(Of ServiceTypeList)

Parameters

applicationTypeName
String

The type name of the application to get service types for.

applicationTypeVersion
String

The application type version to get service types for.

serviceTypeNameFilter
String

The name of the service type to get details for.

Returns

A task that represents the asynchronous query operation.

The returned task contains the list of service types as ServiceTypeList.

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

GetServiceTypeListAsync(String, String, String, TimeSpan, CancellationToken)

Gets the list of service types.

public System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList> GetServiceTypeListAsync (string applicationTypeName, string applicationTypeVersion, string serviceTypeNameFilter, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetServiceTypeListAsync : string * string * string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ServiceTypeList>
Public Function GetServiceTypeListAsync (applicationTypeName As String, applicationTypeVersion As String, serviceTypeNameFilter As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ServiceTypeList)

Parameters

applicationTypeName
String

The type name of the application to get service types for.

applicationTypeVersion
String

The application type version to get service types for.

serviceTypeNameFilter
String

The name of the service type 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 service types as ServiceTypeList.

Exceptions

Applies to