/// <summary>
 ///     Update hosted service deployment by slot
 /// </summary>
 /// <param name="hostedServiceName"></param>
 /// <param name="slot"></param>
 /// <param name="status"></param>
 public void UpdateDeploymentStatusBySlot(string hostedServiceName, DeploymentSlot slot, UpdatedDeploymentStatus status)
 {
     ComputeManagementClient.Deployments.UpdateStatusByDeploymentSlotAsync(hostedServiceName,
         slot,
         new DeploymentUpdateStatusParameters { Status = status },
         new CancellationToken()).Wait();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the DeploymentUpdateStatusParameters
 /// class with required arguments.
 /// </summary>
 public DeploymentUpdateStatusParameters(UpdatedDeploymentStatus status)
     : this()
 {
     this.Status = status;
 }
 /// <summary>
 /// Initializes a new instance of the DeploymentUpdateStatusParameters
 /// class with required arguments.
 /// </summary>
 public DeploymentUpdateStatusParameters(UpdatedDeploymentStatus status)
     : this()
 {
     this.Status = status;
 }
Exemple #4
0
 /// <summary>
 ///     Update hosted service deployment by slot
 /// </summary>
 /// <param name="hostedServiceName"></param>
 /// <param name="slot"></param>
 /// <param name="status"></param>
 public void UpdateDeploymentStatusBySlot(string hostedServiceName, DeploymentSlot slot, UpdatedDeploymentStatus status)
 {
     ComputeManagementClient.Deployments.UpdateStatusByDeploymentSlotAsync(hostedServiceName,
                                                                           slot,
                                                                           new DeploymentUpdateStatusParameters {
         Status = status
     },
                                                                           new CancellationToken()).Wait();
 }