FabricClient.ApplicationManagementClient.MoveNextApplicationUpgradeDomainAsync FabricClient.ApplicationManagementClient.MoveNextApplicationUpgradeDomainAsync FabricClient.ApplicationManagementClient.MoveNextApplicationUpgradeDomainAsync Method

Definition

Overloads

MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress) MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress) MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress)

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

MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress, TimeSpan, CancellationToken) MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress, TimeSpan, CancellationToken)

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

MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress) MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress) 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 ApplicationUpgradeProgress 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.

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.

MoveNextApplicationUpgradeDomainAsync(ApplicationUpgradeProgress, TimeSpan, CancellationToken) 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

Parameters

upgradeProgress
ApplicationUpgradeProgress ApplicationUpgradeProgress ApplicationUpgradeProgress

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

timeout
TimeSpan TimeSpan TimeSpan

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

cancellationToken
CancellationToken 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.

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