Share via


TestabilityExtensions.ValidateApplicationAsync Method (FabricClient.ApplicationManagementClient, Uri, TimeSpan, TimeSpan, CancellationToken)

 

This API will validate the availability and health of all services in the specified application.

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

Syntax

public static Task ValidateApplicationAsync(
    this FabricClient.ApplicationManagementClient appManagementClient,
    Uri applicationName,
    TimeSpan maximumStabilizationTimeout,
    TimeSpan operationTimeout,
    CancellationToken token
)

Parameters

  • applicationName
    Type: System.Uri

    Name of the application whose services need to be validated.

  • maximumStabilizationTimeout
    Type: System.TimeSpan

    Max amount of time to wait for the services to stabilize else fail the operation.

  • operationTimeout
    Type: System.TimeSpan

    Amount of time to wait for an operation to complete else fail the operation.

Return Value

Type: System.Threading.Tasks.Task

Task

Exceptions

Exception Condition
TimeoutException

Action took more than its allocated time.

ArgumentNullException

Any of the required arguments are null.

FabricValidationException

If any service does not stabilize within the specified timeout.

See Also

ValidateApplicationAsync Overload
TestabilityExtensions Class
System.Fabric.Testability Namespace

Return to top