Class MarketingStatisticRepository
This class is intended to be used internally by EPiServer. We do not support any backward compatibility on this.
Repository for MarketingStatistics.
Inheritance
System.Object
MarketingStatisticRepository
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.Internal
Assembly: Mediachase.Commerce.dll
Version: 13.30.0Syntax
public class MarketingStatisticRepository
Constructors
MarketingStatisticRepository(IContentLoader, ISynchronizedObjectInstanceCache, IPermanentLinkMapper)
Initializes a new instance of the MarketingStatisticRepository class.
Declaration
[Obsolete("Use other constructor. Will remain at least until July 2021")]
public MarketingStatisticRepository(IContentLoader contentLoader, ISynchronizedObjectInstanceCache cache, IPermanentLinkMapper permanentLinkMapper)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.IContentLoader | contentLoader | The content loader. |
EPiServer.Framework.Cache.ISynchronizedObjectInstanceCache | cache | The cache. |
EPiServer.Web.IPermanentLinkMapper | permanentLinkMapper | The permanent link mapper. |
MarketingStatisticRepository(IContentLoader, ISynchronizedObjectInstanceCache, IPermanentLinkMapper, MarketingOptions)
Initializes a new instance of the MarketingStatisticRepository class.
Declaration
public MarketingStatisticRepository(IContentLoader contentLoader, ISynchronizedObjectInstanceCache cache, IPermanentLinkMapper permanentLinkMapper, MarketingOptions marketingOptions)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.IContentLoader | contentLoader | The content loader. |
EPiServer.Framework.Cache.ISynchronizedObjectInstanceCache | cache | The cache. |
EPiServer.Web.IPermanentLinkMapper | permanentLinkMapper | The permanent link mapper. |
MarketingOptions | marketingOptions | The marketing options. |
Methods
ClearCache()
Clear the statistics cache.
Declaration
public void ClearCache()
GetStatistic(ContentReference)
Gets statistics per subject that is an instance of EPiServer.Core.ContentReference.
Declaration
public virtual MarketingStatistic GetStatistic(ContentReference source)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Core.ContentReference | source | The source used to calculate statistic. |
Returns
Type | Description |
---|---|
MarketingStatistic | Calculated statistic MarketingStatistic. |
GetStatisticsFromDatabase(IEnumerable<Guid>)
Loads MarketingStatistics from database.
Declaration
protected virtual IEnumerable<MarketingStatistic> GetStatisticsFromDatabase(IEnumerable<Guid> guids)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Guid> | guids | The promotion/campaign guids. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MarketingStatistic> | A list of MarketingStatistic. |