Try our conversational search powered by Generative AI!

Class PromotionPrioritizer

Represents a class to set default priority value for a promotion to the lowest if it's not set.

Inheritance
System.Object
PromotionPrioritizer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class PromotionPrioritizer

Constructors

PromotionPrioritizer(IContentLoader, IContentEvents)

Initlizes a new instance of PromotionPrioritizer.

Declaration
public PromotionPrioritizer(IContentLoader contentLoader, IContentEvents contentEvents)
Parameters
Type Name Description
EPiServer.IContentLoader contentLoader

The content loader used to find the promotions.

EPiServer.Core.IContentEvents contentEvents

The content events.

Fields

PriorityStep

Default step for priority.

Declaration
public const int PriorityStep = 100
Field Value
Type Description
System.Int32

Methods

GetCampaignFolderRoot()

Get the link to the campaign folder root.

Declaration
protected virtual ContentReference GetCampaignFolderRoot()
Returns
Type Description
EPiServer.Core.ContentReference

The link to the campaign folder root.

Register()

Register content events.

Declaration
public void Register()

Unregister()

Unregister content events.

Declaration
public void Unregister()