Class StatisticRepository
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
StatisticRepository
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: 10.8.0Syntax
public class StatisticRepository
Constructors
StatisticRepository(ISynchronizedObjectInstanceCache, IContentLoader)
Initializes a new instance of the StatisticRepository class.
Declaration
public StatisticRepository(ISynchronizedObjectInstanceCache cache, IContentLoader contentLoader)
Parameters
| Type | Name | Description |
|---|---|---|
| EPiServer.Framework.Cache.ISynchronizedObjectInstanceCache | cache | The cache used for MarketingStatistic. |
| EPiServer.IContentLoader | contentLoader | The content loader. |
Methods
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(Guid, IEnumerable<Guid>)
Loads MarketingStatistics from database.
Declaration
protected virtual IEnumerable<MarketingStatistic> GetStatisticsFromDatabase(Guid contentGuid, IEnumerable<Guid> childrenGuid)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Guid | contentGuid | The content guid. |
| System.Collections.Generic.IEnumerable<System.Guid> | childrenGuid | The children guid of the content guid. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<MarketingStatistic> | A list of MarketingStatistic. |