Dela via


FabricClient.ClusterManagementClient.GetClusterConfigurationAsync Method

Definition

Overloads

GetClusterConfigurationAsync()

Gets the Service Fabric cluster configuration file as a string.

GetClusterConfigurationAsync(String)

Gets the Service Fabric cluster configuration file as a string.

GetClusterConfigurationAsync(TimeSpan, CancellationToken)

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

GetClusterConfigurationAsync(String, TimeSpan, CancellationToken)

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

GetClusterConfigurationAsync()

Gets the Service Fabric cluster configuration file as a string.

public System.Threading.Tasks.Task<string> GetClusterConfigurationAsync ();
member this.GetClusterConfigurationAsync : unit -> System.Threading.Tasks.Task<string>
Public Function GetClusterConfigurationAsync () As Task(Of String)

Returns

The Service Fabric cluster configuration file as a string.

Applies to

GetClusterConfigurationAsync(String)

Gets the Service Fabric cluster configuration file as a string.

public System.Threading.Tasks.Task<string> GetClusterConfigurationAsync (string apiVersion);
member this.GetClusterConfigurationAsync : string -> System.Threading.Tasks.Task<string>
Public Function GetClusterConfigurationAsync (apiVersion As String) As Task(Of String)

Parameters

apiVersion
String

Api version.

Returns

The Service Fabric cluster configuration file as a string.

Applies to

GetClusterConfigurationAsync(TimeSpan, CancellationToken)

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

public System.Threading.Tasks.Task<string> GetClusterConfigurationAsync (TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetClusterConfigurationAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetClusterConfigurationAsync (timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of String)

Parameters

timeout
TimeSpan

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

cancellationToken
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.

Returns

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

Applies to

GetClusterConfigurationAsync(String, TimeSpan, CancellationToken)

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

public System.Threading.Tasks.Task<string> GetClusterConfigurationAsync (string apiVersion, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetClusterConfigurationAsync : string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetClusterConfigurationAsync (apiVersion As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of String)

Parameters

apiVersion
String

Api verison.

timeout
TimeSpan

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

cancellationToken
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.

Returns

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

Applies to