你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Extensions.RollbackComposeDeploymentUpgradeAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RollbackComposeDeploymentUpgradeAsync(FabricClient+ComposeDeploymentClient, ComposeDeploymentRollbackDescription)
开始回滚当前 compose 部署升级。
public static System.Threading.Tasks.Task RollbackComposeDeploymentUpgradeAsync (this System.Fabric.FabricClient.ComposeDeploymentClient client, Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentRollbackDescription description);
static member RollbackComposeDeploymentUpgradeAsync : System.Fabric.FabricClient.ComposeDeploymentClient * Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentRollbackDescription -> System.Threading.Tasks.Task
<Extension()>
Public Function RollbackComposeDeploymentUpgradeAsync (client As FabricClient.ComposeDeploymentClient, description As ComposeDeploymentRollbackDescription) As Task
参数
FabricClient 对象。
- description
- ComposeDeploymentRollbackDescription
确定 ComposeDeploymentRollbackDescription 应回滚哪个组合部署的 。
返回
表示 Task 操作的 。
例外
ComposeDeploymentNotUpgrading:对于要回滚的指定 compose 部署,没有挂起的升级。
适用于
RollbackComposeDeploymentUpgradeAsync(FabricClient+ComposeDeploymentClient, ComposeDeploymentRollbackDescription, TimeSpan)
开始回滚当前 compose 部署升级。
public static System.Threading.Tasks.Task RollbackComposeDeploymentUpgradeAsync (this System.Fabric.FabricClient.ComposeDeploymentClient client, Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentRollbackDescription description, TimeSpan timeout);
static member RollbackComposeDeploymentUpgradeAsync : System.Fabric.FabricClient.ComposeDeploymentClient * Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentRollbackDescription * TimeSpan -> System.Threading.Tasks.Task
<Extension()>
Public Function RollbackComposeDeploymentUpgradeAsync (client As FabricClient.ComposeDeploymentClient, description As ComposeDeploymentRollbackDescription, timeout As TimeSpan) As Task
参数
FabricClient 对象。
- description
- ComposeDeploymentRollbackDescription
确定 ComposeDeploymentRollbackDescription 应回滚哪个组合部署的 。
- timeout
- TimeSpan
定义系统在返回 System.TimeoutException 之前允许此操作继续的最长时间。
返回
表示 Task 操作的 。
例外
ComposeDeploymentNotUpgrading:对于要回滚的指定 compose 部署,没有挂起的升级。
适用于
RollbackComposeDeploymentUpgradeAsync(FabricClient+ComposeDeploymentClient, ComposeDeploymentRollbackDescription, TimeSpan, CancellationToken)
开始回滚当前 compose 部署升级。
public static System.Threading.Tasks.Task RollbackComposeDeploymentUpgradeAsync (this System.Fabric.FabricClient.ComposeDeploymentClient client, Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentRollbackDescription description, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
static member RollbackComposeDeploymentUpgradeAsync : System.Fabric.FabricClient.ComposeDeploymentClient * Microsoft.ServiceFabric.Preview.Client.Description.ComposeDeploymentRollbackDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function RollbackComposeDeploymentUpgradeAsync (client As FabricClient.ComposeDeploymentClient, description As ComposeDeploymentRollbackDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task
参数
FabricClient 对象。
- description
- ComposeDeploymentRollbackDescription
确定 ComposeDeploymentRollbackDescription 应回滚哪个组合部署的 。
- timeout
- TimeSpan
定义系统在返回 System.TimeoutException 之前允许此操作继续的最长时间。
- cancellationToken
- CancellationToken
CancellationToken操作正在观测的 。 它可用于传播应取消操作的通知。
返回
表示 Task 操作的 。
例外
ComposeDeploymentNotUpgrading:对于要回滚的指定 compose 部署,没有挂起的升级。