/// <summary> /// Redeploys a specific website deployment. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.WebSitesExtensions.IDeploymentOperations. /// </param> /// <param name='deploymentId'> /// The deployment identifier. /// </param> /// <returns> /// The deployment information operation response. /// </returns> public static DeploymentUpdateResponse Reploy(this IDeploymentOperations operations, string deploymentId) { try { return(operations.ReployAsync(deploymentId).Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Redeploys a specific website deployment. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.WebSitesExtensions.IDeploymentOperations. /// </param> /// <param name='deploymentId'> /// The deployment identifier. /// </param> /// <returns> /// The deployment information operation response. /// </returns> public static Task <DeploymentUpdateResponse> ReployAsync(this IDeploymentOperations operations, string deploymentId) { return(operations.ReployAsync(deploymentId, CancellationToken.None)); }