/// <summary> /// Retrieves all of the VirtualListeners 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{VirtualListenerType}"/></returns> public async Task <PagedResponse <VirtualListenerType> > GetVirtualListenersPaginated(VirtualListenerListOptions options = null, PageableRequest pagingOptions = null) { var response = await _api.GetAsync <virtualListeners>(ApiUris.GetVirtualListeners(_api.OrganizationId), pagingOptions, options); return(new PagedResponse <VirtualListenerType> { items = response.virtualListener, 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 all of the VirtualListeners 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 collection of <see cref="VirtualListenerType"/></returns> public async Task <IEnumerable <VirtualListenerType> > GetVirtualListeners(VirtualListenerListOptions options = null) { var response = await GetVirtualListenersPaginated(options, null); return(response.items); }