Table of Contents

Interface ICurrentIpLocationProvider

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

Represents a provider that finds where this device's public IP address is.

public interface ICurrentIpLocationProvider : IDisposable
Inherited Members

Remarks

A provider that does not support a lookup throws NotSupportedException, which the composite providers pass over without logging.

Methods

GetCurrentLocation(CancellationToken)

Finds where this device's public IP address is.

Task<IpLocation> GetCurrentLocation(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The token to monitor for cancellation requests.

Returns

Task<IpLocation>

A task whose result is the location.

Exceptions

NotSupportedException

The provider does not support the lookup.