Class TimeOfDayCriterion
A criterion for matching a time range in day.
Inheritance
System.Object
TimeOfDayCriterion
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class TimeOfDayCriterion : CriterionBase<TimeOfDayModel>
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 |
|
Remarks
The context parameter may be null but can be used to transfer external context to a Virtual role provider