/// <summary>
 /// The List operation gets information about the Batch accounts
 /// associated either with the subscription if no resource group is
 /// specified or within the specified resource group.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Optional. An optional argument which specifies the name of the
 /// resource group that constrains the set of accounts that are
 /// returned.
 /// </param>
 /// <returns>
 /// Values returned by the List operation.
 /// </returns>
 public static Task<BatchAccountListResponse> ListAsync(this IAccountOperations operations, AccountListParameters parameters)
 {
     return operations.ListAsync(parameters, CancellationToken.None);
 }
 /// <summary>
 /// The List operation gets information about the Batch accounts
 /// associated either with the subscription if no resource group is
 /// specified or within the specified resource group.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Optional. An optional argument which specifies the name of the
 /// resource group that constrains the set of accounts that are
 /// returned.
 /// </param>
 /// <returns>
 /// Values returned by the List operation.
 /// </returns>
 public static BatchAccountListResponse List(this IAccountOperations operations, AccountListParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IAccountOperations)s).ListAsync(parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }