Table of Contents

Interface IIpLocationProvider

Namespace
VpnHood.Net.IpLocations
Assembly
VpnHood.Net.IpLocations.dll

Represents a provider that finds where an IP address is.

public interface IIpLocationProvider : ICurrentIpLocationProvider, IDisposable
Inherited Members

Methods

GetLocation(IPAddress, CancellationToken)

Finds where an IP address is.

Task<IpLocation> GetLocation(IPAddress ipAddress, CancellationToken cancellationToken)

Parameters

ipAddress IPAddress

The IP address.

cancellationToken CancellationToken

The token to monitor for cancellation requests.

Returns

Task<IpLocation>

A task whose result is the location.