FabricClient.ClusterManagementClient.UpgradeFabricAsync 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
UpgradeFabricAsync(FabricUpgradeDescription) |
Upgrades the Service Fabric. |
UpgradeFabricAsync(FabricUpgradeDescription, TimeSpan, CancellationToken) |
Upgrades the Service Fabric by using the specified timeout and cancellation token. |
UpgradeFabricAsync(FabricUpgradeDescription)
Upgrades the Service Fabric.
public System.Threading.Tasks.Task UpgradeFabricAsync (System.Fabric.Description.FabricUpgradeDescription upgradeDescription);
member this.UpgradeFabricAsync : System.Fabric.Description.FabricUpgradeDescription -> System.Threading.Tasks.Task
Public Function UpgradeFabricAsync (upgradeDescription As FabricUpgradeDescription) As Task
Parameters
- upgradeDescription
- FabricUpgradeDescription
The description of the upgrade.
Returns
The upgraded Service Fabric.
Exceptions
The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.
Applies to
UpgradeFabricAsync(FabricUpgradeDescription, TimeSpan, CancellationToken)
Upgrades the Service Fabric by using the specified timeout and cancellation token.
public System.Threading.Tasks.Task UpgradeFabricAsync (System.Fabric.Description.FabricUpgradeDescription upgradeDescription, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.UpgradeFabricAsync : System.Fabric.Description.FabricUpgradeDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function UpgradeFabricAsync (upgradeDescription As FabricUpgradeDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task
Parameters
- upgradeDescription
- FabricUpgradeDescription
The description of the upgrade.
- timeout
- TimeSpan
The timespan that defines the maximum amount of time Service Fabric will allow this operation to continue before returning a TimeoutException.
- cancellationToken
- CancellationToken
The cancellation token that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation may still be completed even if it is cancelled.
Returns
The upgraded Service Fabric.
Exceptions
The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.
Applies to
Azure SDK for .NET