FabricClient.RepairManagementClient.UpdateRepairTaskHealthPolicyAsync Method

Definition

Overloads

UpdateRepairTaskHealthPolicyAsync(String, Int64, Nullable<Boolean>, Nullable<Boolean>)

Updates the health policy of the given repair task.

UpdateRepairTaskHealthPolicyAsync(String, Int64, Nullable<Boolean>, Nullable<Boolean>, TimeSpan, CancellationToken)

Updates the health policy of the given repair task.

UpdateRepairTaskHealthPolicyAsync(String, Int64, Nullable<Boolean>, Nullable<Boolean>)

Updates the health policy of the given repair task.

public System.Threading.Tasks.Task<long> UpdateRepairTaskHealthPolicyAsync (string repairTaskId, long version, Nullable<bool> performPreparingHealthCheck, Nullable<bool> performRestoringHealthCheck);
member this.UpdateRepairTaskHealthPolicyAsync : string * int64 * Nullable<bool> * Nullable<bool> -> System.Threading.Tasks.Task<int64>
Public Function UpdateRepairTaskHealthPolicyAsync (repairTaskId As String, version As Long, performPreparingHealthCheck As Nullable(Of Boolean), performRestoringHealthCheck As Nullable(Of Boolean)) As Task(Of Long)

Parameters

repairTaskId
System.String

The ID of the repair task for which the health policy is to be updated.

version
System.Int64

The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current value of the repair task. If zero, then no version check is performed.

performPreparingHealthCheck
System.Nullable<System.Boolean>

A nullable boolean indicating if health check is to be performed in the Preparing stage of the repair task. Specify null for this parameter if the existing value should not be altered. Otherwise, specify the desired new value.

performRestoringHealthCheck
System.Nullable<System.Boolean>

A nullable boolean indicating if health check is to be performed in the Restoring stage of the repair task. Specify null for this parameter if the existing value should not be altered. Otherwise, specify the desired new value.

Returns

System.Threading.Tasks.Task<System.Int64>

Applies to

UpdateRepairTaskHealthPolicyAsync(String, Int64, Nullable<Boolean>, Nullable<Boolean>, TimeSpan, CancellationToken)

Updates the health policy of the given repair task.

public System.Threading.Tasks.Task<long> UpdateRepairTaskHealthPolicyAsync (string repairTaskId, long version, Nullable<bool> performPreparingHealthCheck, Nullable<bool> performRestoringHealthCheck, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.UpdateRepairTaskHealthPolicyAsync : string * int64 * Nullable<bool> * Nullable<bool> * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int64>

Parameters

repairTaskId
System.String

The ID of the repair task for which the health policy is to be updated.

version
System.Int64

The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current value of the repair task. If zero, then no version check is performed.

performPreparingHealthCheck
System.Nullable<System.Boolean>

A nullable boolean indicating if health check is to be performed in the Preparing stage of the repair task. Specify null for this parameter if the existing value should not be altered. Else, specify the appropriate bool value.

performRestoringHealthCheck
System.Nullable<System.Boolean>

A nullable boolean indicating if health check is to be performed in the Restoring stage of the repair task. Specify null for this parameter if the existing value should not be altered. Else, specify the appropriate bool value.

timeout
System.TimeSpan

The maximum amount of time Service Fabric will allow this operation to continue before returning a System.TimeoutException.

cancellationToken
System.Threading.CancellationToken

The optional 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 cancelled.

Returns

System.Threading.Tasks.Task<System.Int64>

A task representing the asynchronous operation.

Applies to