November Happy Hour will be moved to Thursday December 5th.

Class TimeOnSiteCriterion

Inheritance
System.Object
TimeOnSiteCriterion
Namespace: EPiServer.VisitorGroupsCriteriaPack
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
[VisitorGroupCriterion(Category = "Time and Place Criteria", Description = "Matches the total length of a user's visit", DisplayName = "Time on Site", LanguagePath = "/shell/cms/visitorgroups/criteria/timeonsitecriterion")]
public class TimeOnSiteCriterion : CriterionBase<TimeOnSiteModel>, ICriterion, IGeneratesAdministrativeInterface

Constructors

TimeOnSiteCriterion(IStateStorage)

Creates a new instance of TimeOnSiteCriterion

Declaration
public TimeOnSiteCriterion(IStateStorage stateStorage)
Parameters
Type Name Description
IStateStorage stateStorage

Methods

IsMatch(IPrincipal, HttpContext)

Declaration
public override bool IsMatch(IPrincipal principal, HttpContext httpContext)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal
Microsoft.AspNetCore.Http.HttpContext httpContext
Returns
Type Description
System.Boolean
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.VisitorGroupsCriteriaPack.TimeOnSiteModel>.IsMatch(System.Security.Principal.IPrincipal, Microsoft.AspNetCore.Http.HttpContext)

Subscribe(ICriterionEvents)

Declaration
public override void Subscribe(ICriterionEvents criterionEvents)
Parameters
Type Name Description
ICriterionEvents criterionEvents
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.VisitorGroupsCriteriaPack.TimeOnSiteModel>.Subscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)

Unsubscribe(ICriterionEvents)

Declaration
public override void Unsubscribe(ICriterionEvents criterionEvents)
Parameters
Type Name Description
ICriterionEvents criterionEvents
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.VisitorGroupsCriteriaPack.TimeOnSiteModel>.Unsubscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)

Implements

Extension Methods