Class GeographicCoordinateCriterion

Visitor group criterion that will match the geolocation based on request IP address with the location stored in the settings

Inheritance
System.Object
EPiServer.Personalization.VisitorGroups.CriterionBase<GeographicCoordinateModel>
GeographicCoordinateCriterion
Implements
EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface
Inherited Members
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.GeographicCoordinateModel>.Initialize(EPiServer.Personalization.VisitorGroups.VisitorGroupCriterion)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.GeographicCoordinateModel>.Subscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.GeographicCoordinateModel>.Unsubscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.GeographicCoordinateModel>.Model
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.GeographicCoordinateModel>.EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface.ModelType
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[VisitorGroupCriterion(Category = "Time and Place Criteria", Description = "Match the location of the visitor with selected geographic coordinates", DisplayName = "Geographic Coordinate", LanguagePath = "/shell/cms/visitorgroups/criteria/geographiccoordinate", ScriptUrl = "ClientResources/Criteria/GeographicCoordinate.js")]
public class GeographicCoordinateCriterion : GeographicCriterionBase<GeographicCoordinateModel>, ICriterion, IGeneratesAdministrativeInterface

Constructors

GeographicCoordinateCriterion()

Initializes an instance of GeographicCoordinateCriterion.

Declaration
public GeographicCoordinateCriterion()

GeographicCoordinateCriterion(GeolocationProviderBase)

Initializes an instance of GeographicCoordinateCriterion.

Declaration
public GeographicCoordinateCriterion(GeolocationProviderBase geolocationProvider)
Parameters
Type Name Description
GeolocationProviderBase geolocationProvider

GeographicCoordinateCriterion(GeolocationProviderBase, IPAddressResolver)

Initializes an instance of GeographicCoordinateCriterion.

Declaration
public GeographicCoordinateCriterion(GeolocationProviderBase geolocationProvider, IPAddressResolver addressResolver)
Parameters
Type Name Description
GeolocationProviderBase geolocationProvider

The geolocation provider.

IPAddressResolver addressResolver

The address resolver.

Methods

IsMatch(IGeolocationResult, Capabilities)

Determines whether the specified principal is match. Will match the geolocation of the client with the location stored in the settings

Declaration
protected override bool IsMatch(IGeolocationResult location, Capabilities capabilities)
Parameters
Type Name Description
IGeolocationResult location

The location of the client.

Capabilities capabilities

The capabilities of the geolocation system in use.

Returns
Type Description
System.Boolean

true if the specified principal is match; otherwise, false.

Overrides
EPiServer.Personalization.VisitorGroups.Criteria.GeographicCriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.GeographicCoordinateModel>.IsMatch(EPiServer.Personalization.IGeolocationResult, EPiServer.Personalization.Capabilities)

Implements

EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface

Extension Methods