C# Class CSharpAnalytics.Sessions.Session

Represents a session of user activity.
Afficher le fichier Open project: TechSmith/CSharpAnalytics Class Usage Examples

Méthodes publiques

Méthode Description
IncreaseHitCount ( ) : void

Increase the hit count for this session in a thread-safe way.

Session ( ) : System

Creates the first ever session for a Visitor.

Session ( DateTimeOffset startedAt, int number ) : System

Create a new session given a specific start time and session number. Used to create the next session.

Session ( DateTimeOffset startedAt, int number, int hitCount, long hitId ) : System

Create a new session given all the parameters possible. Used to restore sessions from state before the timeout occurs.

Method Details

IncreaseHitCount() public méthode

Increase the hit count for this session in a thread-safe way.
public IncreaseHitCount ( ) : void
Résultat void

Session() public méthode

Creates the first ever session for a Visitor.
public Session ( ) : System
Résultat System

Session() public méthode

Create a new session given a specific start time and session number. Used to create the next session.
public Session ( DateTimeOffset startedAt, int number ) : System
startedAt DateTimeOffset When this session started at.
number int Session number.
Résultat System

Session() public méthode

Create a new session given all the parameters possible. Used to restore sessions from state before the timeout occurs.
public Session ( DateTimeOffset startedAt, int number, int hitCount, long hitId ) : System
startedAt DateTimeOffset When this session started at.
number int Session number.
hitCount int Number of hits in this session so far.
hitId long Random Id used to ensure any web cache is bypassed.
Résultat System