Property | Type | Description | |
---|---|---|---|
lastActivityAt | DateTimeOffset | ||
newSessionLock | object |
Property | Type | Description | |
---|---|---|---|
End | void | ||
Hit | void | ||
MoveToNextSessionStatus | void | ||
ShouldTrackThisNewVisitor | bool |
Method | Description | |
---|---|---|
GetState ( ) : |
Capture details of the SessionManager into a SessionState that can be safely stored and restored.
|
|
SessionManager ( |
Recreate a SessionManager from state.
|
|
StartNewSession ( ) : void |
Manually start a new session. Useful for scoping out session custom variables, e.g. if an anonymous user becomes known via sign-in.
|
Method | Description | |
---|---|---|
StartNewSession ( DateTimeOffset startedAt ) : void |
Start a new session.
|
Method | Description | |
---|---|---|
End ( ) : void |
End the current session.
|
|
Hit ( ) : void |
Record a hit to this session to ensure counts and timeouts are honoured.
|
|
MoveToNextSessionStatus ( ) : void |
Move to the next session status, e.g. Ending to Starting, Starting to Active.
|
|
ShouldTrackThisNewVisitor ( double sampleRate ) : bool |
Whether a new visitor should be tracked or not.
|
public SessionManager ( |
||
sessionState | SessionState containing details captured from a previous SessionManager or null if no previous SessionManager. | |
sampleRate | double | Sample rate to determine likelyhood of a new installation being tracked or not. |
return | System |
protected StartNewSession ( DateTimeOffset startedAt ) : void | ||
startedAt | DateTimeOffset | When this session started. |
return | void |