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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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