FabricClient.TestManagementClient.GetPartitionRestartProgressAsync 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
GetPartitionRestartProgressAsync(Guid, TimeSpan) |
Gets the progress of a test command started using StartPartitionRestartAsync(). |
GetPartitionRestartProgressAsync(Guid) |
Gets the progress of a test command started using StartPartitionRestartAsync(). |
GetPartitionRestartProgressAsync(Guid, CancellationToken) |
Gets the progress of a test command started using StartPartitionRestartAsync(). |
GetPartitionRestartProgressAsync(Guid, TimeSpan, CancellationToken) |
Gets the progress of a test command started using StartPartitionRestartAsync(). |
GetPartitionRestartProgressAsync(Guid, TimeSpan)
Gets the progress of a test command started using StartPartitionRestartAsync().
public System.Threading.Tasks.Task<System.Fabric.PartitionRestartProgress> GetPartitionRestartProgressAsync (Guid operationId, TimeSpan timeout);
member this.GetPartitionRestartProgressAsync : Guid * TimeSpan -> System.Threading.Tasks.Task<System.Fabric.PartitionRestartProgress>
Public Function GetPartitionRestartProgressAsync (operationId As Guid, timeout As TimeSpan) As Task(Of PartitionRestartProgress)
Parameters
- operationId
- Guid
The operationId passed in when the test command was starting using StartPartitionRestartAsync().
- timeout
- TimeSpan
Timeout.
Returns
A PartitionRestartProgress object, containing TestCommandProgressState and PartitionRestartResult.
Remarks
The FaultAnalysisService must be enabled to use this API.
If the returned PartitionRestartProgress.State == Faulted, examine PartitionRestartProgress.Result.Exception to determine why. PartitionRestartProgress.Result.Exception values: - ArgumentException - the input was invalid. - FabricException, with an ErrorCode property of: - PartitionNotFound - the specified partition was not found, or is not a partition that belongs to the specified service.
Applies to
GetPartitionRestartProgressAsync(Guid)
Gets the progress of a test command started using StartPartitionRestartAsync().
public System.Threading.Tasks.Task<System.Fabric.PartitionRestartProgress> GetPartitionRestartProgressAsync (Guid operationId);
member this.GetPartitionRestartProgressAsync : Guid -> System.Threading.Tasks.Task<System.Fabric.PartitionRestartProgress>
Public Function GetPartitionRestartProgressAsync (operationId As Guid) As Task(Of PartitionRestartProgress)
Parameters
- operationId
- Guid
The operationId passed in when the test command was starting using StartPartitionRestartAsync().
Returns
A PartitionRestartProgress object, containing TestCommandProgressState and PartitionRestartResult.
Remarks
The FaultAnalysisService must be enabled to use this API.
If the returned PartitionRestartProgress.State == Faulted, examine PartitionRestartProgress.Result.Exception to determine why. PartitionRestartProgress.Result.Exception values: - ArgumentException - the input was invalid. - FabricException, with an ErrorCode property of: - PartitionNotFound - the specified partition was not found, or is not a partition that belongs to the specified service.
Applies to
GetPartitionRestartProgressAsync(Guid, CancellationToken)
Gets the progress of a test command started using StartPartitionRestartAsync().
public System.Threading.Tasks.Task<System.Fabric.PartitionRestartProgress> GetPartitionRestartProgressAsync (Guid operationId, System.Threading.CancellationToken cancellationToken);
member this.GetPartitionRestartProgressAsync : Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.PartitionRestartProgress>
Public Function GetPartitionRestartProgressAsync (operationId As Guid, cancellationToken As CancellationToken) As Task(Of PartitionRestartProgress)
Parameters
- operationId
- Guid
The operationId passed in when the test command was starting using StartPartitionRestartAsync().
- cancellationToken
- CancellationToken
This token can be signalled to abort this operation before it finishes
Returns
A PartitionRestartProgress object, containing TestCommandProgressState and PartitionRestartResult.
Remarks
The FaultAnalysisService must be enabled to use this API.
If the returned PartitionRestartProgress.State == Faulted, examine PartitionRestartProgress.Result.Exception to determine why. PartitionRestartProgress.Result.Exception values: - ArgumentException - the input was invalid. - FabricException, with an ErrorCode property of: - PartitionNotFound - the specified partition was not found, or is not a partition that belongs to the specified service.
Applies to
GetPartitionRestartProgressAsync(Guid, TimeSpan, CancellationToken)
Gets the progress of a test command started using StartPartitionRestartAsync().
public System.Threading.Tasks.Task<System.Fabric.PartitionRestartProgress> GetPartitionRestartProgressAsync (Guid operationId, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetPartitionRestartProgressAsync : Guid * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.PartitionRestartProgress>
Public Function GetPartitionRestartProgressAsync (operationId As Guid, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of PartitionRestartProgress)
Parameters
- operationId
- Guid
The operationId passed in when the test command was starting using StartPartitionRestartAsync().
- timeout
- TimeSpan
Timeout.
- cancellationToken
- CancellationToken
This token can be signalled to abort this operation before it finishes
Returns
A PartitionRestartProgress object, containing TestCommandProgressState and PartitionRestartResult.
Remarks
The FaultAnalysisService must be enabled to use this API.
If the returned PartitionRestartProgress.State == Faulted, examine PartitionRestartProgress.Result.Exception to determine why. PartitionRestartProgress.Result.Exception values: - ArgumentException - the input was invalid. - FabricException, with an ErrorCode property of: - PartitionNotFound - the specified partition was not found, or is not a partition that belongs to the specified service.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應