Header menu logo Nao

ISessionDirectoryGrain Type

Per-user session directory. Grain key = userId. Tracks which sessions exist so they can be enumerated after restart.

Instance members

Instance member Description

this.ListActiveAsync

Full Usage: this.ListActiveAsync

Returns: Task<SessionDirectoryEntry array>
Modifiers: abstract

List only active sessions

Returns: Task<SessionDirectoryEntry array>

this.ListAllAsync

Full Usage: this.ListAllAsync

Returns: Task<SessionDirectoryEntry array>
Modifiers: abstract

List all sessions (active and inactive)

Returns: Task<SessionDirectoryEntry array>

this.MarkActiveAsync

Full Usage: this.MarkActiveAsync

Parameters:
    sessionId : string

Returns: Task
Modifiers: abstract

Mark a session as active (resumed)

sessionId : string
Returns: Task

this.MarkInactiveAsync

Full Usage: this.MarkInactiveAsync

Parameters:
    sessionId : string

Returns: Task
Modifiers: abstract

Mark a session as inactive (paused)

sessionId : string
Returns: Task

this.RegisterAsync

Full Usage: this.RegisterAsync

Parameters:
Returns: Task
Modifiers: abstract

Register a new session in the directory

entry : SessionDirectoryEntry
Returns: Task

this.RemoveAsync

Full Usage: this.RemoveAsync

Parameters:
    sessionId : string

Returns: Task
Modifiers: abstract

Remove a session from the directory (on destroy)

sessionId : string
Returns: Task

this.TouchAsync

Full Usage: this.TouchAsync

Parameters:
    sessionId : string
    title : string

Returns: Task
Modifiers: abstract

Update the last-active timestamp and title for a session

sessionId : string
title : string
Returns: Task

Type something to start searching.