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.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: 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
)

Parameters

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

Return Value

TaskGridResultsIpAddressStatusDto
Retrieved statuses, if any.

Implements

IAzureCosmosDbGetIpAddressStatuses(CompanyDto, UserSessionData, Boolean, IReadOnlyCollectionFilterItem, IReadOnlyCollectionSortingItem, UInt16, UInt16, CancellationToken)

See Also