Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

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
Namespace: EPiServer.Commerce.Marketing.Internal
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public class MarketingStatisticRepository : Object

Constructors

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.