/// <summary>
 /// Updates an existing Web Hosting Plan.  (see
 /// http://azure.microsoft.com/en-us/documentation/articles/azure-web-sites-web-hosting-plans-in-depth-overview/
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.WebSites.IWebHostingPlanOperations.
 /// </param>
 /// <param name='webSpaceName'>
 /// Required. The name of the web space.
 /// </param>
 /// <param name='webHostingPlanName'>
 /// Required. The name of the web hosting plan.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Update Web Hosting Plan
 /// operation.
 /// </param>
 /// <returns>
 /// The Create Web Hosting Plan operation response.
 /// </returns>
 public static Task<WebHostingPlanUpdateResponse> UpdateAsync(this IWebHostingPlanOperations operations, string webSpaceName, string webHostingPlanName, WebHostingPlanUpdateParameters parameters)
 {
     return operations.UpdateAsync(webSpaceName, webHostingPlanName, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Updates an existing Web Hosting Plan.  (see
 /// http://azure.microsoft.com/en-us/documentation/articles/azure-web-sites-web-hosting-plans-in-depth-overview/
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.WebSites.IWebHostingPlanOperations.
 /// </param>
 /// <param name='webSpaceName'>
 /// Required. The name of the web space.
 /// </param>
 /// <param name='webHostingPlanName'>
 /// Required. The name of the web hosting plan.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Update Web Hosting Plan
 /// operation.
 /// </param>
 /// <returns>
 /// The Create Web Hosting Plan operation response.
 /// </returns>
 public static WebHostingPlanUpdateResponse Update(this IWebHostingPlanOperations operations, string webSpaceName, string webHostingPlanName, WebHostingPlanUpdateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IWebHostingPlanOperations)s).UpdateAsync(webSpaceName, webHostingPlanName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }