C# Class CSharpAnalytics.Sessions.Session

Represents a session of user activity.
Exibir arquivo Open project: TechSmith/CSharpAnalytics Class Usage Examples

Public Methods

Method 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 method

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

Session() public method

Creates the first ever session for a Visitor.
public Session ( ) : System
return System

Session() public method

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.
return System

Session() public method

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.
return System