Share via


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, bool? performPreparingHealthCheck, 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
String

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

version
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
Nullable<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
Nullable<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

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, bool? performPreparingHealthCheck, 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>
Public Function UpdateRepairTaskHealthPolicyAsync (repairTaskId As String, version As Long, performPreparingHealthCheck As Nullable(Of Boolean), performRestoringHealthCheck As Nullable(Of Boolean), timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of Long)

Parameters

repairTaskId
String

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

version
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
Nullable<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
Nullable<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
TimeSpan

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

cancellationToken
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

A task representing the asynchronous operation.

Applies to