SaaS CMS has officially launched! Learn more now.

Class FirstActiveClientGeolocationResolver

Implementation of IClientGeolocationResolver that will delegate all calls to the first active IClientGeolocationResolver implementation it can find among it's dependencies.

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

Constructors

FirstActiveClientGeolocationResolver(IEnumerable<IClientGeolocationResolver>)

ader Creates a new instance of FirstActiveClientGeolocationResolver

Declaration
public FirstActiveClientGeolocationResolver(IEnumerable<IClientGeolocationResolver> resolvers)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IClientGeolocationResolver> resolvers

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