FabricClient.RepairManagementClient.ForceApproveRepairTaskAsync Method

Definition

Overloads

ForceApproveRepairTaskAsync(String, Int64)

Forces the approval of the given repair task.

ForceApproveRepairTaskAsync(String, Int64, TimeSpan, CancellationToken)

Forces the approval of the given repair task.

ForceApproveRepairTaskAsync(String, Int64)

Forces the approval of the given repair task.

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

Parameters

repairTaskId
String

The ID of the repair task to be approved.

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.

Returns

The new version number of the repair task.

Applies to

ForceApproveRepairTaskAsync(String, Int64, TimeSpan, CancellationToken)

Forces the approval of the given repair task.

public System.Threading.Tasks.Task<long> ForceApproveRepairTaskAsync (string repairTaskId, long version, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.ForceApproveRepairTaskAsync : string * int64 * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int64>
Public Function ForceApproveRepairTaskAsync (repairTaskId As String, version As Long, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of Long)

Parameters

repairTaskId
String

The ID of the repair task to be approved.

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.

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

The new version number of the repair task.

Applies to