FabricClient.QueryClient.GetApplicationLoadInformationAsync 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
GetApplicationLoadInformationAsync(String) |
Retrieves the load information of the specified application instance. |
GetApplicationLoadInformationAsync(String, TimeSpan, CancellationToken) |
Retrieves the load information of the specified application instance. |
GetApplicationLoadInformationAsync(String)
Retrieves the load information of the specified application instance.
public System.Threading.Tasks.Task<System.Fabric.Query.ApplicationLoadInformation> GetApplicationLoadInformationAsync (string applicationName);
member this.GetApplicationLoadInformationAsync : string -> System.Threading.Tasks.Task<System.Fabric.Query.ApplicationLoadInformation>
Public Function GetApplicationLoadInformationAsync (applicationName As String) As Task(Of ApplicationLoadInformation)
Parameters
- applicationName
- String
The URI of the application instance name.
Returns
A task that represents the asynchronous query operation.
The returned task contains the information of an application as ApplicationLoadInformation.
Exceptions
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
ApplicationNotFound: The application does not exist.
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.
See also https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
Applies to
GetApplicationLoadInformationAsync(String, TimeSpan, CancellationToken)
Retrieves the load information of the specified application instance.
public System.Threading.Tasks.Task<System.Fabric.Query.ApplicationLoadInformation> GetApplicationLoadInformationAsync (string applicationName, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetApplicationLoadInformationAsync : string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ApplicationLoadInformation>
Public Function GetApplicationLoadInformationAsync (applicationName As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ApplicationLoadInformation)
Parameters
- applicationName
- String
The URI of the application instance name.
- 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 information of an application as ApplicationLoadInformation.
Exceptions
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
ApplicationNotFound: The application does not exist.
The request timed out.
See also https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
Applies to
Azure SDK for .NET