/// <summary>
 /// Creates an association to a hybrid connection for a web site.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
 /// </param>
 /// <param name='webSpaceName'>
 /// Required. The name of the web space.
 /// </param>
 /// <param name='siteName'>
 /// Required. The name of the web site.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Create Hybrid Connection
 /// operation.
 /// </param>
 /// <returns>
 /// The Create Hybrid Connection operation response.
 /// </returns>
 public static Task<HybridConnectionCreateResponse> CreateHybridConnectionAsync(this IWebSiteOperations operations, string webSpaceName, string siteName, HybridConnectionCreateParameters parameters)
 {
     return operations.CreateHybridConnectionAsync(webSpaceName, siteName, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Creates an association to a hybrid connection for a web site.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
 /// </param>
 /// <param name='webSpaceName'>
 /// Required. The name of the web space.
 /// </param>
 /// <param name='siteName'>
 /// Required. The name of the web site.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Create Hybrid Connection
 /// operation.
 /// </param>
 /// <returns>
 /// The Create Hybrid Connection operation response.
 /// </returns>
 public static HybridConnectionCreateResponse CreateHybridConnection(this IWebSiteOperations operations, string webSpaceName, string siteName, HybridConnectionCreateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IWebSiteOperations)s).CreateHybridConnectionAsync(webSpaceName, siteName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }