Ejemplo n.º 1
0
 /// <summary>
 /// Gets information about the specified application.
 /// </summary>
 /// <remarks>
 /// This operation returns only applications and versions that are available
 /// for use on compute nodes; that is, that can be used in an application
 /// package reference. For administrator information about applications and
 /// versions that are not yet available to compute nodes, use the Azure portal
 /// or the Azure Resource Manager API.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='applicationId'>
 /// The ID of the application.
 /// </param>
 /// <param name='applicationGetOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ApplicationSummary> GetAsync(this IApplicationOperations operations, string applicationId, ApplicationGetOptions applicationGetOptions = default(ApplicationGetOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(applicationId, applicationGetOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the application resource with the given name.
 /// </summary>
 /// <remarks>
 /// Gets the information about the application resource with the given name.
 /// The information include the description and other properties of the
 /// application.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Azure resource group name
 /// </param>
 /// <param name='applicationResourceName'>
 /// The identity of the application.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ApplicationResourceDescription> GetAsync(this IApplicationOperations operations, string resourceGroupName, string applicationResourceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, applicationResourceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }