Exemplo n.º 1
0
 /// <summary>
 /// You can retrieve the config settings for a web site by issuing an
 /// HTTP GET request, or update them by using HTTP PUT with a request
 /// body that contains the settings to be updated.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn166985.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.WebSites.IWebSiteOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='webSiteName'>
 /// Required. The name of the web site.
 /// </param>
 /// <param name='parameters'>
 /// Optional. Additional parameters.
 /// </param>
 /// <returns>
 /// The Get Web Site Configuration operation response.
 /// </returns>
 public static Task <WebSiteGetConfigurationResponse> GetConfigurationAsync(this IWebSiteOperations operations, string resourceGroupName, string webSiteName, WebSiteGetConfigurationParameters parameters)
 {
     return(operations.GetConfigurationAsync(resourceGroupName, webSiteName, parameters, CancellationToken.None));
 }
Exemplo n.º 2
0
 /// <summary>
 /// You can retrieve the config settings for a web site by issuing an
 /// HTTP GET request, or update them by using HTTP PUT with a request
 /// body that contains the settings to be updated.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn166985.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.WebSites.IWebSiteOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='webSiteName'>
 /// Required. The name of the web site.
 /// </param>
 /// <param name='parameters'>
 /// Optional. Additional parameters.
 /// </param>
 /// <returns>
 /// The Get Web Site Configuration operation response.
 /// </returns>
 public static WebSiteGetConfigurationResponse GetConfiguration(this IWebSiteOperations operations, string resourceGroupName, string webSiteName, WebSiteGetConfigurationParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IWebSiteOperations)s).GetConfigurationAsync(resourceGroupName, webSiteName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }