Iso3166RetrieveIpAddressStatus Method

Retrieves a new IP Address data from https://ipapi.co/ and returns the results. It also checks whether the IP Address is from a blacklisted country.

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public static Task<IpAddressStatusDto?> RetrieveIpAddressStatus(
	string ipAddress,
	Guid companyId
)

Parameters

ipAddress  String
IP Address to check
companyId  Guid
Company the new IP Address is for (white/blacklist), or Empty for the global white/blacklist.

Return Value

TaskIpAddressStatusDto
Newly generated status, or null if there was an issue with the third party service.

Exceptions

InvalidOperationExceptionThrown if deserialization went wrong when calling the third party service.

See Also