FabricClient.RepairManagementClient.CreateRepairTaskAsync 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
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>
Parameters
- repairTask
- RepairTask
The description of the repair task to be created.
Returns
- System.Threading.Tasks.Task<System.Int64>
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>
Parameters
- repairTask
- RepairTask
The description of the repair task to be created.
- timeout
- System.TimeSpan
The maximum amount of time Service Fabric will allow this operation to continue before returning aSystem.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>
The version number of the newly-created repair task.