/// <summary>
 /// Lists all of the applications in the specified account.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IApplicationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the Batch
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the Batch account.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters for the request.
 /// </param>
 /// <returns>
 /// Response to an ApplicationOperations.ListApplications request.
 /// </returns>
 public static Task<ListApplicationsResponse> ListAsync(this IApplicationOperations operations, string resourceGroupName, string accountName, ListApplicationsParameters parameters)
 {
     return operations.ListAsync(resourceGroupName, accountName, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Lists all of the applications in the specified account.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IApplicationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the Batch
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the Batch account.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters for the request.
 /// </param>
 /// <returns>
 /// Response to an ApplicationOperations.ListApplications request.
 /// </returns>
 public static ListApplicationsResponse List(this IApplicationOperations operations, string resourceGroupName, string accountName, ListApplicationsParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IApplicationOperations)s).ListAsync(resourceGroupName, accountName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }