FabricClient.HealthClient.GetDeployedServicePackageHealthAsync Method (DeployedServicePackageHealthQueryDescription)

 

Applies To: Azure, Windows 10, Windows 8, Windows 8.1, Windows Server 2012 R2

Asynchronously gets the health of a deployed Service Fabric service package by using the specified timeout and cancellation token.

Namespace:   System.Fabric
Assembly:  System.Fabric (in System.Fabric.dll)

Syntax

public Task<DeployedServicePackageHealth> GetDeployedServicePackageHealthAsync(
    DeployedServicePackageHealthQueryDescription queryDescription
)

Parameters

Return Value

Type: System.Threading.Tasks.Task<DeployedServicePackageHealth>

The health of a deployed Service Fabric service package.

Exceptions

Exception Condition
FabricObjectClosedException

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

TimeoutException

Caused by one of the following:

OperationTimedOut is returned when the operation takes more than MaxOperationTimeout to complete.

UnauthorizedAccessException

Caused by one of the following:

E_ACCESSDENIED is returned when the access check has failed for this operation.

ArgumentNullException

Returned when a null reference is passed to a method that does not accept it as a valid argument.

FabricTransientException

Caused by one of the following:

ServiceTooBusy is returned when the service is too busy to process the operation.

FabricException

Caused by one of the following:

FabricHealthEntityNotFound.

InvalidNameUri is returned when ApplicationName is not a valid Service Fabric Name.

CommunicationError is returned when a communication error caused the operation to fail.

InvalidCredentialType.

InvalidX509FindType.

InvalidX509StoreLocation.

InvalidX509StoreName.

InvalidX509Thumbprint.

InvalidProtectionLevel.

InvalidX509Store.

InvalidSubjectName.

InvalidAllowedCommonNameList.

ArgumentException

Caused by one of the following:

E_INVALIDARG is returned when one or more arguments are not valid.

See Also

GetDeployedServicePackageHealthAsync Overload
FabricClient.HealthClient Class
System.Fabric Namespace

Return to top