Delen via


FabricClient.ApplicationManagementClient.UpgradeApplicationAsync Method

Definition

Overloads

UpgradeApplicationAsync(ApplicationUpgradeDescription)

Performs upgrade on an application instance.

UpgradeApplicationAsync(ApplicationUpgradeDescription, TimeSpan, CancellationToken)

Performs upgrade on an application instance.

UpgradeApplicationAsync(ApplicationUpgradeDescription)

Performs upgrade on an application instance.

public System.Threading.Tasks.Task UpgradeApplicationAsync (System.Fabric.Description.ApplicationUpgradeDescription upgradeDescription);
member this.UpgradeApplicationAsync : System.Fabric.Description.ApplicationUpgradeDescription -> System.Threading.Tasks.Task
Public Function UpgradeApplicationAsync (upgradeDescription As ApplicationUpgradeDescription) As Task

Parameters

upgradeDescription
ApplicationUpgradeDescription

The description of the upgrade policy and the application to be upgrade.

Returns

A Task representing the operation.

Exceptions

ApplicationUpgradeInProgress: The application is already being upgraded to the requested version.

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

ApplicationUpgradeInProgress: The application is already being upgraded to the requested version.

ApplicationNotFound: The application does not exist.

There was an error accessing a file on the image store.

A required file was not found on the image store.

A required directory was not found on the image store.

A path to an image store file/directory was too long.

ImageStoreIOException: There was an IO error communicating with the image store.

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.

Applies to

UpgradeApplicationAsync(ApplicationUpgradeDescription, TimeSpan, CancellationToken)

Performs upgrade on an application instance.

public System.Threading.Tasks.Task UpgradeApplicationAsync (System.Fabric.Description.ApplicationUpgradeDescription upgradeDescription, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.UpgradeApplicationAsync : System.Fabric.Description.ApplicationUpgradeDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UpgradeApplicationAsync (upgradeDescription As ApplicationUpgradeDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

upgradeDescription
ApplicationUpgradeDescription

The description of the upgrade policy and the application to be upgraded.

timeout
TimeSpan

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

cancellationToken
CancellationToken

The token 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

ApplicationUpgradeInProgress: The application is already being upgraded to the requested version.

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

ApplicationUpgradeInProgress: The application is already being upgraded to the requested version.

ApplicationNotFound: The application does not exist.

There was an error accessing a file on the image store.

A required file was not found on the image store.

A required directory was not found on the image store.

A path to an image store file/directory was too long.

ImageStoreIOException: There was an IO error communicating with the image store.

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.

Applies to