IAzureCosmosDbGetIpAddressStatusOfUser Method

Retrieves the status of an IP Address, if available in the database. If we're logging in on a location that the company the user belongs to never has been at, and if it doesn't appear on the global white/blacklist, the method will return .

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task<IpAddressStatusDto?> GetIpAddressStatusOfUser(
	string ipAddress,
	AccountDto user,
	CancellationToken cancellationToken = default
)

Parameters

ipAddress  String
The location the user signs in from.
user  AccountDto
The user signing in
cancellationToken  CancellationToken  (Optional)
Cancellation Token

Return Value

TaskIpAddressStatusDto
Found IP Address status (if any)

See Also