C# 클래스 CSharpAnalytics.Sessions.SessionManager

Manages visitors and sessions to ensure they are correctly saved, restored and time-out as appropriate.
파일 보기 프로젝트 열기: TechSmith/CSharpAnalytics 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
lastActivityAt DateTimeOffset
newSessionLock object

Private Properties

프로퍼티 타입 설명
End void
Hit void
MoveToNextSessionStatus void
ShouldTrackThisNewVisitor bool

공개 메소드들

메소드 설명
GetState ( ) : SessionState

Capture details of the SessionManager into a SessionState that can be safely stored and restored.

SessionManager ( SessionState sessionState, double sampleRate = 100.0 ) : System

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.

메소드 상세

GetState() 공개 메소드

Capture details of the SessionManager into a SessionState that can be safely stored and restored.
public GetState ( ) : SessionState
리턴 SessionState

SessionManager() 공개 메소드

Recreate a SessionManager from state.
public SessionManager ( SessionState sessionState, double sampleRate = 100.0 ) : System
sessionState 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

StartNewSession() 공개 메소드

Manually start a new session. Useful for scoping out session custom variables, e.g. if an anonymous user becomes known via sign-in.
public StartNewSession ( ) : void
리턴 void

StartNewSession() 보호된 메소드

Start a new session.
protected StartNewSession ( DateTimeOffset startedAt ) : void
startedAt DateTimeOffset When this session started.
리턴 void

프로퍼티 상세

lastActivityAt 보호되어 있는 프로퍼티

protected DateTimeOffset lastActivityAt
리턴 DateTimeOffset

newSessionLock 보호되어 있는 프로퍼티

protected object newSessionLock
리턴 object