AzureCosmosDbGetIpAddressStatuses Method
Retrieves the white/blacklist of
IpAddressStatusDtoes for
company in a neat order.
If
company is
, we'll retrieve the global IP Address Status list.
Namespace: MobileTrack.DataContainers.CosmosAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task<GridResults<IpAddressStatusDto>> GetIpAddressStatuses(
CompanyDto? company,
UserSessionData currentUser,
bool isWhiteList,
IReadOnlyCollection<FilterItem> filters,
IReadOnlyCollection<SortingItem> sorting,
ushort pageSize,
ushort skip,
CancellationToken cancellationToken = default
)
- company CompanyDto
- Company the IP Address status belong to.
- currentUser UserSessionData
- User trying to get the data
- isWhiteList Boolean
- Whether to show the white list () or the blacklist ()
- filters IReadOnlyCollectionFilterItem
- Properties to filter on
- sorting IReadOnlyCollectionSortingItem
- Properties to sort on
- pageSize UInt16
- Size of the page.
- skip UInt16
- Pages to skip
- cancellationToken CancellationToken (Optional)
- Cancellation token
TaskGridResultsIpAddressStatusDtoRetrieved statuses, if any.
IAzureCosmosDbGetIpAddressStatuses(CompanyDto, UserSessionData, Boolean, IReadOnlyCollectionFilterItem, IReadOnlyCollectionSortingItem, UInt16, UInt16, CancellationToken)