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+45c8d9adb5970d727cceec44a5ed61aea0016e50
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