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
| Name | Type | Description |
|---|---|---|
state | SessionLifecycleState | |
cause | SessionChangeCause | |
sessionId | SessionId | |
previousSessionId | SessionId? | |
reason | string |
Properties
| Member | Description |
|---|---|
| State | Where the session stands now. |
| Cause | Why the latest move happened; SessionChangeCause.None on a state that is not part of a move. |
| 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. |
| PreviousSessionId | The session it moved from, on the state that ends a move; null otherwise. |
| Reason | Text 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