Class MarketingHelper
Marketing Helper class that holds the cache of all marketing data needed during runtime.
Inheritance
System.Object
MarketingHelper
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: Mediachase.Commerce.Marketing.Objects
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
[Obsolete("Use promotion system in EPiServer.Commerce.Marketing instead. Will be removed in a future major release, but not earlier than August 2018.")]
public class MarketingHelper
Constructors
MarketingHelper(CampaignDto, ExpressionDto, PolicyDto, PromotionDto, SegmentDto)
Initializes a new instance of the MarketingHelper class.
Declaration
public MarketingHelper(CampaignDto campaigns, ExpressionDto expressions, PolicyDto policies, PromotionDto promotions, SegmentDto segments)
Parameters
Type | Name | Description |
---|---|---|
CampaignDto | campaigns | The campaigns. |
ExpressionDto | expressions | The expressions. |
PolicyDto | policies | The policies. |
PromotionDto | promotions | The promotions. |
SegmentDto | segments | The segments. |
Properties
Campaigns
Gets or sets the campaigns.
Declaration
public CampaignDto Campaigns { get; set; }
Property Value
Type | Description |
---|---|
CampaignDto | The campaigns. |
Expressions
Gets or sets the expressions.
Declaration
public ExpressionDto Expressions { get; set; }
Property Value
Type | Description |
---|---|
ExpressionDto | The expressions. |
Policies
Gets or sets the policies.
Declaration
public PolicyDto Policies { get; set; }
Property Value
Type | Description |
---|---|
PolicyDto | The policies. |
Promotions
Gets or sets the promotions.
Declaration
public PromotionDto Promotions { get; set; }
Property Value
Type | Description |
---|---|
PromotionDto | The promotions. |
Segments
Gets or sets the segments.
Declaration
public SegmentDto Segments { get; set; }
Property Value
Type | Description |
---|---|
SegmentDto | The segments. |
Usage
Gets or sets the total usage. The property implement lazy loading and only loaded when information is requested.
Declaration
public DataTable Usage { get; set; }
Property Value
Type | Description |
---|---|
System.Data.DataTable | The usage. |
Remarks
The property is cached as part of the overall MarketingHelper caching, so no additional caching is needed.