C# Класс CSharpAnalytics.Sessions.Session

Represents a session of user activity.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

IncreaseHitCount() публичный Метод

Increase the hit count for this session in a thread-safe way.
public IncreaseHitCount ( ) : void
Результат void

Session() публичный Метод

Creates the first ever session for a Visitor.
public Session ( ) : System
Результат System

Session() публичный Метод

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.
Результат System

Session() публичный Метод

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.
Результат System