프로퍼티 | 타입 | 설명 | |
---|---|---|---|
lastActivityAt | DateTimeOffset | ||
newSessionLock | object |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
End | void | ||
Hit | void | ||
MoveToNextSessionStatus | void | ||
ShouldTrackThisNewVisitor | bool |
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
StartNewSession ( DateTimeOffset startedAt ) : void |
Start a new session.
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 | System |
protected StartNewSession ( DateTimeOffset startedAt ) : void | ||
startedAt | DateTimeOffset | When this session started. |
리턴 | void |