FabricClient.RepairManagementClient.CreateRepairTaskAsync Method

Definition

Overloads

CreateRepairTaskAsync(RepairTask)

Creates a new repair task.

CreateRepairTaskAsync(RepairTask, TimeSpan, CancellationToken)

Creates a new repair task.

CreateRepairTaskAsync(RepairTask)

Creates a new repair task.

public System.Threading.Tasks.Task<long> CreateRepairTaskAsync (System.Fabric.Repair.RepairTask repairTask);
member this.CreateRepairTaskAsync : System.Fabric.Repair.RepairTask -> System.Threading.Tasks.Task<int64>
Public Function CreateRepairTaskAsync (repairTask As RepairTask) As Task(Of Long)

Parameters

repairTask
RepairTask

The description of the repair task to be created.

Returns

The version number of the newly-created repair task.

Applies to

CreateRepairTaskAsync(RepairTask, TimeSpan, CancellationToken)

Creates a new repair task.

public System.Threading.Tasks.Task<long> CreateRepairTaskAsync (System.Fabric.Repair.RepairTask repairTask, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.CreateRepairTaskAsync : System.Fabric.Repair.RepairTask * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int64>
Public Function CreateRepairTaskAsync (repairTask As RepairTask, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of Long)

Parameters

repairTask
RepairTask

The description of the repair task to be created.

timeout
TimeSpan

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

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 version number of the newly-created repair task.

Applies to