SaaS CMS has officially launched! Learn more now.

Class TimeOfDayCriterion

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A criterion for matching a time range in day.

Inheritance
System.Object
TimeOfDayCriterion
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
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

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

Remarks

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

Extension Methods