Class UriSessionStartCriterionBase<T>
Base class fro Uri criterion
Inheritance
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public abstract class UriSessionStartCriterionBase<T> : CriterionBase<T> where T : class, ICriterionModel, new()
Type Parameters
Name | Description |
---|---|
T |
Constructors
UriSessionStartCriterionBase()
Declaration
protected UriSessionStartCriterionBase()
Properties
SessionKey
Gets or sets the session key.
Declaration
public abstract string SessionKey { get; }
Property Value
Type | Description |
---|---|
System.String | The session key. |
Methods
GetSession(HttpContextBase)
Gets the session.
Declaration
protected object GetSession(HttpContextBase httpContext)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | httpContext | The HTTP context. |
Returns
Type | Description |
---|---|
System.Object |
GetUri(HttpContextBase)
Gets the URI.
Declaration
protected abstract Uri GetUri(HttpContextBase httpContext)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | httpContext | The HTTP context. |
Returns
Type | Description |
---|---|
System.Uri |
IsMatch(IPrincipal, HttpContextBase)
Determines whether the specified principal is mathced the hostname referer criteria.
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 HTTP context. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsMatch(Uri)
Determines whether the specified URI is match.
Declaration
protected abstract bool IsMatch(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | The URI. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Subscribe(ICriterionEvents)
Called when a criteria instance is initialized. Starts listenen on session start
Declaration
public override void Subscribe(ICriterionEvents criterionEvents)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Personalization.VisitorGroups.ICriterionEvents | criterionEvents | The criterion notifier. |
Remarks
Any event subscribed to in this method should be unsubscribed in method Unsubscribe. The reason for this is that otherwise there will be "dangling" event handlers.
Unsubscribe(ICriterionEvents)
Called when a criteria is unloaded, for example because it seetings has been updated. Unsubscribes the session start handler
Declaration
public override void Unsubscribe(ICriterionEvents criterionEvents)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Personalization.VisitorGroups.ICriterionEvents | criterionEvents |