FabricClient.TestManagementClient.GetPartitionRestartProgressAsync Method

Definition

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