Class DownloadCriterion
Use cookie to store downloaded file's VirtualPath
Inheritance
System.Object
DownloadCriterion
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
[VisitorGroupCriterion(DisplayName = "Downloaded file", Category = "URL Criteria", Description = "Match the download file path with a specific string", LanguagePath = "/visitorgroupscriteriapack/downloadcriterion")]
public class DownloadCriterion : CriterionBase<DownloadModel>, ICriterion, IGeneratesAdministrativeInterface
Constructors
DownloadCriterion(IHttpContextAccessor, IContentUrlResolverEvents)
Declaration
public DownloadCriterion(IHttpContextAccessor httpContextAccessor, IContentUrlResolverEvents contentRouteEvents)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Http.IHttpContextAccessor |
httpContextAccessor |
|
IContentUrlResolverEvents |
contentRouteEvents |
|
Properties
CookieKey
keyname = "__EPiDownloadCriterion"
Declaration
public virtual string CookieKey { get; }
Property Value
Type |
Description |
System.String |
|
Methods
IsMatch(IPrincipal, HttpContext)
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.VisitorGroupsCriteriaPack.DownloadModel>.IsMatch(System.Security.Principal.IPrincipal, Microsoft.AspNetCore.Http.HttpContext)
Subscribe(ICriterionEvents)
Declaration
public override void Subscribe(ICriterionEvents criterionEvents)
Parameters
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.VisitorGroupsCriteriaPack.DownloadModel>.Subscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)
Unsubscribe(ICriterionEvents)
Declaration
public override void Unsubscribe(ICriterionEvents criterionEvents)
Parameters
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.VisitorGroupsCriteriaPack.DownloadModel>.Unsubscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)
Implements
Extension Methods