Share via


TestabilityExtensions.ValidateServiceAsync Method (FabricClient.ServiceManagementClient, Uri, TimeSpan, TimeSpan, CancellationToken)

 

This API will validate the availability and health of the specified service.

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

Syntax

public static Task ValidateServiceAsync(
    this FabricClient.ServiceManagementClient serviceManagementClient,
    Uri serviceName,
    TimeSpan maximumStabilizationTimeout,
    TimeSpan operationTimeout,
    CancellationToken token
)

Parameters

  • serviceName
    Type: System.Uri

    Name of the service that needs to be validated.

  • maximumStabilizationTimeout
    Type: System.TimeSpan

    Max amount of time to wait for the service 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

ValidateServiceAsync Overload
TestabilityExtensions Class
System.Fabric.Testability Namespace

Return to top