共用方式為


FabricClient.ApplicationManagementClient.MoveNextApplicationUpgradeDomainAsync Method

Definition

Overloads

MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress)

Instructs the Service Fabric to upgrade the application instance in the next upgrade domain.

MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress, TimeSpan, CancellationToken)

Instructs the upgrade to continue with the application instance in the next upgrade domain.

MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress)

Instructs the Service Fabric to upgrade the application instance in the next upgrade domain.

public System.Threading.Tasks.Task MoveNextApplicationUpgradeDomainAsync (System.Fabric.ApplicationUpgradeProgress upgradeProgress);
member this.MoveNextApplicationUpgradeDomainAsync : System.Fabric.ApplicationUpgradeProgress -> System.Threading.Tasks.Task
Public Function MoveNextApplicationUpgradeDomainAsync (upgradeProgress As ApplicationUpgradeProgress) As Task

Parameters

upgradeProgress
ApplicationUpgradeProgress

–The Upgrade progress of the application instance of interest. This provides information about the next upgrade domain to be upgraded.

Returns

A Task representing the operation.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

ApplicationNotFound: The application does not exist.

The request timed out but may have already been accepted for processing by the system.

The request was canceled before the timeout expired but may have already been accepted for processing by the system.

Remarks

Service Fabric would only move to the next upgrade domain if it has completed the upgrade domain it is currently updating. In other words, UpgradeState property should be Pending before calling this method.

Applies to

MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress, TimeSpan, CancellationToken)

Instructs the upgrade to continue with the application instance in the next upgrade domain.

public System.Threading.Tasks.Task MoveNextApplicationUpgradeDomainAsync (System.Fabric.ApplicationUpgradeProgress upgradeProgress, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.MoveNextApplicationUpgradeDomainAsync : System.Fabric.ApplicationUpgradeProgress * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function MoveNextApplicationUpgradeDomainAsync (upgradeProgress As ApplicationUpgradeProgress, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

upgradeProgress
ApplicationUpgradeProgress

The upgrade progress of the application instance of interest. This provides information about the next upgrade domain to be upgraded.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

cancellationToken
CancellationToken

The CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

A Task representing the operation.

Exceptions

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

ApplicationNotFound: The application does not exist.

The request timed out but may have already been accepted for processing by the system.

The request was canceled before the timeout expired but may have already been accepted for processing by the system.

Remarks

Service Fabric would only move to the next upgrade domain if it has completed the upgrade domain it is currently updating. In other words, UpgradeState property should be Pending before calling this method.

Applies to