Class TimeOfDayCriterion

A criterion for matching a time range in day.

Inheritance
System.Object
EPiServer.Personalization.VisitorGroups.CriterionBase<TimeOfDayModel>
TimeOfDayCriterion
Implements
EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface
Inherited Members
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.TimeOfDayModel>.Initialize(EPiServer.Personalization.VisitorGroups.VisitorGroupCriterion)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.TimeOfDayModel>.Subscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.TimeOfDayModel>.Unsubscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.TimeOfDayModel>.Model
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.TimeOfDayModel>.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 specific time period in day", DisplayName = "Time of Day", LanguagePath = "/shell/cms/visitorgroups/criteria/timeofday", ScriptUrl = "ClientResources/Criteria/TimeOfDay.js")]
public class TimeOfDayCriterion : CriterionBase<TimeOfDayModel>, ICriterion, IGeneratesAdministrativeInterface

Constructors

TimeOfDayCriterion()

Initializes a new instance of the TimeOfDayCriterion class.

Declaration
public TimeOfDayCriterion()

TimeOfDayCriterion(ICurrentTimeProvider)

Initializes a new instance of the TimeOfDayCriterion class.

Declaration
public TimeOfDayCriterion(ICurrentTimeProvider currentTimeProvider)
Parameters
Type Name Description
ICurrentTimeProvider currentTimeProvider

The current time provider.

Methods

IsMatch(IPrincipal, HttpContextBase)

Determines whether the specified principal is a member of this role.

Declaration
public override bool IsMatch(IPrincipal principal, HttpContextBase httpContext)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal

The principal.

System.Web.HttpContextBase httpContext

The current http context

Returns
Type Description
System.Boolean

true if the specified principal is in the virtual role; otherwise, false.

Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.TimeOfDayModel>.IsMatch(System.Security.Principal.IPrincipal, System.Web.HttpContextBase)
Remarks

The context parameter may be null but can be used to transfer external context to a Virtual role provider

Implements

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

Extension Methods