Table of Contents

Struct CharacterSessionInfo

Namespace
FishMMO.Server.Core.World.SceneServer
Assembly
FishMMO.Server.dll

Stores the session ownership token and server ID for a claimed character. Used to properly release character sessions via ReleaseAsync.

public readonly struct CharacterSessionInfo
Inherited Members

Constructors

CharacterSessionInfo(Guid, long)

Initializes a new session info with the given ownership token and server ID.

public CharacterSessionInfo(Guid token, long serverID)

Parameters

token Guid

The session ownership token returned by TryClaimAsync.

serverID long

The server ID that owns this session.

Fields

ServerID

The server ID that owns this session.

public readonly long ServerID

Field Value

long

Token

The session ownership token returned by TryClaimAsync. Required for ReleaseAsync and RefreshSessionLeaseAsync.

public readonly Guid Token

Field Value

Guid