Class VisitorGroupStatisticsLogger
Inheritance
System.Object
VisitorGroupStatisticsLogger
Namespace: EPiServer.Personalization.VisitorGroups.Internal
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public class VisitorGroupStatisticsLogger : Object, IVisitorGroupStatisticsLogger, IVisitorGroupsStatisticsLoggerRegistry, IDisposable
Constructors
VisitorGroupStatisticsLogger(Boolean)
For internal use only
Declaration
public VisitorGroupStatisticsLogger(bool enableTimer)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enableTimer | if set to |
VisitorGroupStatisticsLogger(Boolean, IList<IVisitorGroupStatisticRepository>)
For internal use only
Declaration
public VisitorGroupStatisticsLogger(bool enableTimer, IList<IVisitorGroupStatisticRepository> statisticRepositories)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enableTimer | if set to |
System.Collections.Generic.IList<IVisitorGroupStatisticRepository> | statisticRepositories | The statistic repositories. |
Properties
AutomaticCommitFromMemoryToRepositoryPeriod
For internal use only
Declaration
public TimeSpan AutomaticCommitFromMemoryToRepositoryPeriod { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan | The automatic commit from memory to repository period. |
Enabled
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Instance
For internal use only
Declaration
public static VisitorGroupStatisticsLogger Instance { get; }
Property Value
Type | Description |
---|---|
VisitorGroupStatisticsLogger | The instance. |
Methods
AddRepository(IVisitorGroupStatisticRepository)
For internal use only
Declaration
public void AddRepository(IVisitorGroupStatisticRepository repository)
Parameters
Type | Name | Description |
---|---|---|
IVisitorGroupStatisticRepository | repository | The repository. |
AddStatisticToMemory(Guid, HttpContext)
For internal use only
Declaration
public void AddStatisticToMemory(Guid identity, HttpContext httpContext)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | identity | The identifier. |
Microsoft.AspNetCore.Http.HttpContext | httpContext | The HTTP context. |
CommitStatisticFromMemoryToRepository()
For internal use only
Declaration
public void CommitStatisticFromMemoryToRepository()
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
RemoveStatistics(IEnumerable<Guid>)
For internal use only
Declaration
public void RemoveStatistics(IEnumerable<Guid> identities)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Guid> | identities | The identities. |
Events
PersistCollectedStatistic
Raised when presisted statistic should be persisted.
Declaration
public event EventHandler PersistCollectedStatistic
Event Type
Type | Description |
---|---|
System.EventHandler |
Implements
System.IDisposable