/// <summary> /// Retrieves the Pool Members on a particular Network Domain at an MCP 2.0 data center. /// </summary> /// <param name="options">The filter options.</param> /// <param name="pagingOptions">The Paging options.</param> /// <returns>The async task of <see cref="PagedResponse{PoolMemberType}"/></returns> public async Task <PagedResponse <PoolMemberType> > GetPoolMembersPaginated(PoolMemberListOptions options = null, PageableRequest pagingOptions = null) { var response = await _api.GetAsync <poolMembers>(ApiUris.GetPoolMembers(_api.OrganizationId), pagingOptions, options); return(new PagedResponse <PoolMemberType> { items = response.poolMember, totalCount = response.totalCountSpecified ? response.totalCount : (int?)null, pageCount = response.pageCountSpecified ? response.pageCount : (int?)null, pageNumber = response.pageNumberSpecified ? response.pageNumber : (int?)null, pageSize = response.pageSizeSpecified ? response.pageSize : (int?)null }); }
/// <summary> /// Retrieves the Pool Members on a particular Network Domain at an MCP 2.0 data center. /// </summary> /// <param name="options">The filter options</param> /// <returns>The async task of a collection of <see cref="PoolMemberType"/></returns> public async Task <IEnumerable <PoolMemberType> > GetPoolMembers(PoolMemberListOptions options = null) { var response = await GetPoolMembersPaginated(options, null); return(response.items); }