FabricClient.RepairManagementClient.CancelRepairTaskAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CancelRepairTaskAsync(String, Int64, Boolean) |
Requests the cancellation of the given repair task. |
CancelRepairTaskAsync(String, Int64, Boolean, TimeSpan, CancellationToken) |
Requests the cancellation of the given repair task. |
CancelRepairTaskAsync(String, Int64, Boolean)
Requests the cancellation of the given repair task.
public System.Threading.Tasks.Task<long> CancelRepairTaskAsync (string repairTaskId, long version, bool requestAbort);
member this.CancelRepairTaskAsync : string * int64 * bool -> System.Threading.Tasks.Task<int64>
Public Function CancelRepairTaskAsync (repairTaskId As String, version As Long, requestAbort As Boolean) As Task(Of Long)
Parameters
- repairTaskId
- String
The ID of the repair task to be cancelled.
- 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.
- requestAbort
- Boolean
True
if the repair should be stopped as soon as possible even if it has already started executing. False
if the repair should be cancelled only if execution has not yet started.
Returns
The new version number of the repair task.
Applies to
CancelRepairTaskAsync(String, Int64, Boolean, TimeSpan, CancellationToken)
Requests the cancellation of the given repair task.
public System.Threading.Tasks.Task<long> CancelRepairTaskAsync (string repairTaskId, long version, bool requestAbort, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.CancelRepairTaskAsync : string * int64 * bool * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int64>
Public Function CancelRepairTaskAsync (repairTaskId As String, version As Long, requestAbort As Boolean, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of Long)
Parameters
- repairTaskId
- String
The ID of the repair task to be cancelled.
- 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.
- requestAbort
- Boolean
True
if the repair should be stopped as soon as possible even if it has already started executing. False
if the repair should be cancelled only if execution has not yet started.
- 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
Azure SDK for .NET