SaaS CMS has officially launched! Learn more now.

Class ProviderBasedClientGeolocationResolver

Implementation of IClientGeolocationResolver that uses the IGeolocationProvider to resolve the client location.

Inheritance
System.Object
ProviderBasedClientGeolocationResolver
Namespace: EPiServer.Personalization.Internal
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3
Syntax
public class ProviderBasedClientGeolocationResolver : Object, IClientGeolocationResolver

Constructors

ProviderBasedClientGeolocationResolver(IGeolocationProvider, IClientIPAddressResolver)

ader Creates a new instance of ProviderBasedClientGeolocationResolver

Declaration
public ProviderBasedClientGeolocationResolver(IGeolocationProvider geolocationProvider, IClientIPAddressResolver addressResolver)
Parameters
Type Name Description
IGeolocationProvider geolocationProvider
IClientIPAddressResolver addressResolver

Properties

Capabilities

Gets the geolocation resolving capabilities of the IClientGeolocationResolver

Declaration
public Capabilities Capabilities { get; }
Property Value
Type Description
Capabilities

Methods

ResolveLocation(HttpContext)

Resolves the geographic location where the current request originates from.

Declaration
public IGeolocationResult ResolveLocation(HttpContext httpContext)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.HttpContext httpContext

The current HTTP context.

Returns
Type Description
IGeolocationResult

The geolocation of the current client or null if no location could be established.

Implements

Extension Methods