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
serviceManagementClient
Type: System.Fabric.FabricClient.ServiceManagementClientThe ServiceManagementClient instance on which the API is called.
serviceName
Type: System.UriName of the service that needs to be validated.
maximumStabilizationTimeout
Type: System.TimeSpanMax amount of time to wait for the service to stabilize else fail the operation.
operationTimeout
Type: System.TimeSpanAmount of time to wait for an operation to complete else fail the operation.
token
Type: System.Threading.CancellationTokenCancellation token
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