Skip to main content
Version: Dev (main)

SessionLifecycleChangedEventArgs class

One state of a session's lifecycle (C QarSessionLifecycleInfo): a snapshot, safe to keep. Delivered by Session.SubscribeLifecycle and returned by Session.GetLifecycleState.

Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll

public sealed class SessionLifecycleChangedEventArgs : EventArgs

Inherits: EventArgs → SessionLifecycleChangedEventArgs

Constructors​

SessionLifecycleChangedEventArgs(SessionLifecycleState, SessionChangeCause, SessionId, SessionId?, string)​

public SessionLifecycleChangedEventArgs(SessionLifecycleState state, SessionChangeCause cause, SessionId sessionId, SessionId? previousSessionId, string reason)

Parameters

NameTypeDescription
stateSessionLifecycleState
causeSessionChangeCause
sessionIdSessionId
previousSessionIdSessionId?
reasonstring

Properties​

MemberDescription
StateWhere the session stands now.
CauseWhy the latest move happened; SessionChangeCause.None on a state that is not part of a move.
SessionIdThe session the app is in now: during SessionLifecycleState.Migrating still the old one, the new one once the move completed. Session.GetId returns the same.
PreviousSessionIdThe session it moved from, on the state that ends a move; null otherwise.
ReasonText for logs and the operator, never a secret; empty from Session.GetLifecycleState.

State​

Where the session stands now.

public SessionLifecycleState State { get; }

Value: SessionLifecycleState

Cause​

Why the latest move happened; SessionChangeCause.None on a state that is not part of a move.

public SessionChangeCause Cause { get; }

Value: SessionChangeCause

SessionId​

The session the app is in now: during SessionLifecycleState.Migrating still the old one, the new one once the move completed. Session.GetId returns the same.

public SessionId SessionId { get; }

Value: SessionId

PreviousSessionId​

The session it moved from, on the state that ends a move; null otherwise.

public SessionId? PreviousSessionId { get; }

Value: SessionId?

Reason​

Text for logs and the operator, never a secret; empty from Session.GetLifecycleState.

public string Reason { get; }

Value: string