November Happy Hour will be moved to Thursday December 5th.

Class VisitorGroupStatisticRepositoryBase<TKey, TValue, TModel>

Inheritance
System.Object
VisitorGroupStatisticRepositoryBase<TKey, TValue, TModel>
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.Shell.UI.Models.VisitorGroupsStatistics.Statistics
Assembly: EPiServer.Shell.UI.dll
Version: 11.20.7
Syntax
[Obsolete("The Episerver gadget framework has been deprecated so the Visitor Group Statistics gadget will be removed after the upcoming major release.")]
public abstract class VisitorGroupStatisticRepositoryBase<TKey, TValue, TModel> : IVisitorGroupStatisticRepository where TModel : VisitorGroupStatisticModelBase
Type Parameters
Name Description
TKey
TValue
TModel

Constructors

VisitorGroupStatisticRepositoryBase(IEqualityComparer<TKey>)

Declaration
[Obsolete("Will remain at least until july 2017")]
public VisitorGroupStatisticRepositoryBase(IEqualityComparer<TKey> equalityComparer)
Parameters
Type Name Description
System.Collections.Generic.IEqualityComparer<TKey> equalityComparer

VisitorGroupStatisticRepositoryBase(IEqualityComparer<TKey>, DynamicDataStoreFactory)

Declaration
[Obsolete("Will remain at least until july 2017")]
public VisitorGroupStatisticRepositoryBase(IEqualityComparer<TKey> equalityComparer, DynamicDataStoreFactory storeFactory)
Parameters
Type Name Description
System.Collections.Generic.IEqualityComparer<TKey> equalityComparer
DynamicDataStoreFactory storeFactory

VisitorGroupStatisticRepositoryBase(IEqualityComparer<TKey>, DynamicDataStoreFactory, IVisitorGroupsStatisticsLoggerRegistry)

Declaration
public VisitorGroupStatisticRepositoryBase(IEqualityComparer<TKey> equalityComparer, DynamicDataStoreFactory storeFactory, IVisitorGroupsStatisticsLoggerRegistry visitorGroupsStatisticsLoggerRegistry)
Parameters
Type Name Description
System.Collections.Generic.IEqualityComparer<TKey> equalityComparer
DynamicDataStoreFactory storeFactory
IVisitorGroupsStatisticsLoggerRegistry visitorGroupsStatisticsLoggerRegistry

Properties

Items

Declaration
protected virtual IOrderedQueryable<TModel> Items { get; }
Property Value
Type Description
System.Linq.IOrderedQueryable<TModel>

SessionKey

Declaration
public string SessionKey { get; }
Property Value
Type Description
System.String

Store

Declaration
protected virtual DynamicDataStore Store { get; }
Property Value
Type Description
DynamicDataStore

Methods

AddSession(Guid, HttpContextBase, String)

Declaration
protected virtual bool AddSession(Guid identity, HttpContextBase httpContext, string sessionKey)
Parameters
Type Name Description
System.Guid identity
System.Web.HttpContextBase httpContext
System.String sessionKey
Returns
Type Description
System.Boolean

AddStatistic(Guid, HttpContextBase)

Declaration
public void AddStatistic(Guid identity, HttpContextBase httpContext)
Parameters
Type Name Description
System.Guid identity
System.Web.HttpContextBase httpContext

CommitMemoryToRepository(IDictionary<TKey, TValue>)

Declaration
protected abstract void CommitMemoryToRepository(IDictionary<TKey, TValue> statisticsInMemory)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<TKey, TValue> statisticsInMemory

CreateStatisticKey(Guid)

Declaration
protected abstract TKey CreateStatisticKey(Guid visitorGroupId)
Parameters
Type Name Description
System.Guid visitorGroupId
Returns
Type Description
TKey

Delete(Guid)

Declaration
protected virtual void Delete(Guid visitorGroupId)
Parameters
Type Name Description
System.Guid visitorGroupId

DeleteStatistics(IEnumerable<Guid>)

Declaration
public void DeleteStatistics(IEnumerable<Guid> identities)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Guid> identities

Save(TModel)

Declaration
protected virtual void Save(TModel model)
Parameters
Type Name Description
TModel model

SaveStatistic()

Declaration
public void SaveStatistic()

SaveToMemory(Guid, TKey, IDictionary<TKey, TValue>, HttpContextBase)

Declaration
protected abstract void SaveToMemory(Guid visitorGroupId, TKey key, IDictionary<TKey, TValue> statisticList, HttpContextBase httpContext)
Parameters
Type Name Description
System.Guid visitorGroupId
TKey key
System.Collections.Generic.IDictionary<TKey, TValue> statisticList
System.Web.HttpContextBase httpContext

Implements

Extension Methods