Class DoNotTrackPersonalizationEvaluator
An implementation of IPersonalizationEvaluator that checks if Do Not Track header (DNT) is present on request and if so disables personalization.
Inheritance
System.Object
DoNotTrackPersonalizationEvaluator
Implements
Namespace: EPiServer.Personalization
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public class DoNotTrackPersonalizationEvaluator : Object, IPersonalizationEvaluator
Constructors
DoNotTrackPersonalizationEvaluator(IHttpContextAccessor)
Creates a new instance of DoNotTrackPersonalizationEvaluator
Declaration
public DoNotTrackPersonalizationEvaluator(IHttpContextAccessor requestAccessor)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.IHttpContextAccessor | requestAccessor |
Methods
Personalize()
Declaration
public bool Personalize()
Returns
Type | Description |
---|---|
System.Boolean |