/// <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> /// Lists all accounts in a subscription or in a resource group if its name is specified /// </summary> /// <param name="listParameters">Additional parameters that are associated with the listing of accounts</param> /// <returns>The status of list operation</returns> public BatchAccountListResponse ListAccounts(AccountListParameters listParameters) { return(BatchManagementClient.Accounts.List(listParameters)); }
/// <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()); }