Class ViewedPagesCriterion
Matches users who has at least once visited the selected page.
Inherited Members
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
[VisitorGroupCriterion(Category = "Site Criteria", Description = "Matches after the user has visited a certain page", DisplayName = "Visited Page", LanguagePath = "/shell/cms/visitorgroups/criteria/viewedpages")]
public class ViewedPagesCriterion : CriterionBase<ViewedPagesModel>, ICriterion, IGeneratesAdministrativeInterface
Constructors
ViewedPagesCriterion()
Initializes a new instance of the ViewedPagesCriterion class.
Declaration
public ViewedPagesCriterion()
ViewedPagesCriterion(IStateStorage)
Initializes a new instance of the ViewedPagesCriterion class.
Declaration
public ViewedPagesCriterion(IStateStorage stateStorage)
Parameters
Type | Name | Description |
---|---|---|
IStateStorage | stateStorage | The storage |
Methods
IsMatch(IPrincipal, HttpContext)
Returns true when the user has visited the selected page.
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.Personalization.VisitorGroups.Criteria.ViewedPagesModel>.IsMatch(System.Security.Principal.IPrincipal, Microsoft.AspNetCore.Http.HttpContext)
Subscribe(ICriterionEvents)
Subscribes to the visited page event.
Declaration
public override void Subscribe(ICriterionEvents criterionEvents)
Parameters
Type | Name | Description |
---|---|---|
ICriterionEvents | criterionEvents |
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ViewedPagesModel>.Subscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)
Unsubscribe(ICriterionEvents)
Unsubscribes from the visited page event.
Declaration
public override void Unsubscribe(ICriterionEvents criterionEvents)
Parameters
Type | Name | Description |
---|---|---|
ICriterionEvents | criterionEvents |
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.ViewedPagesModel>.Unsubscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)