/// <summary>
 /// Get metadata for deploying a package to the given resource group
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiApps.ITemplateOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters for operation
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static GetDeploymentTemplateMetadataResponse GetMetadata(this ITemplateOperations operations, GetDeploymentMetadataRequest parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ITemplateOperations)s).GetMetadataAsync(parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the ApiAppManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public ApiAppManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._apiApps    = new ApiAppOperations(this);
     this._templates  = new TemplateOperations(this);
     this._apiVersion = "2015-03-01-preview";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
 /// <summary>
 /// Get metadata for deploying a package to the given resource group
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiApps.ITemplateOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters for operation
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <GetDeploymentTemplateMetadataResponse> GetMetadataAsync(this ITemplateOperations operations, GetDeploymentMetadataRequest parameters)
 {
     return(operations.GetMetadataAsync(parameters, CancellationToken.None));
 }