Share via


FabricClient.ClusterManagementClient.GetClusterManifestAsync Method (TimeSpan, CancellationToken)

 

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

Gets the Service Fabric cluster manifest XML file as a string, by using the specified timeout and cancellation token.

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

Syntax

public Task<string> GetClusterManifestAsync(
    TimeSpan timeout,
    CancellationToken cancellationToken
)

Parameters

  • timeout
    Type: System.TimeSpan

    The timespan that defines the maximum amount of time Service Fabric will allow this operation to continue before returning a TimeoutException.

  • cancellationToken
    Type: System.Threading.CancellationToken

    The cancellation token that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation may still be completed even if it is canceled.

Return Value

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

The Service Fabric cluster manifest XML file as a string, by using the specified timeout and cancellation token.

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.

See Also

GetClusterManifestAsync Overload
FabricClient.ClusterManagementClient Class
System.Fabric Namespace

Return to top