Table of Contents

Struct CharacterSessionLeaseData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

Identifies a single claimed character session for a batched lease refresh.

public readonly struct CharacterSessionLeaseData
Inherited Members

Remarks

Carries the full ownership triple rather than just the character ID so the refresh can verify the caller still owns the session it is extending. A server that lost the session (released it, or had it claimed away after its lease expired) must not be able to extend the new owner's lease.

Constructors

CharacterSessionLeaseData(long, long, Guid)

Initializes a new lease-refresh entry.

public CharacterSessionLeaseData(long characterID, long ownerServerID, Guid ownerToken)

Parameters

characterID long

Character whose session lease should be extended.

ownerServerID long

Server that claims to own the session.

ownerToken Guid

Ownership token returned by the original claim.

Fields

CharacterID

Character whose session lease should be extended.

public readonly long CharacterID

Field Value

long

OwnerServerID

Server that claims to own the session.

public readonly long OwnerServerID

Field Value

long

OwnerToken

Ownership token returned by the original claim.

public readonly Guid OwnerToken

Field Value

Guid

Properties

IsValid

Whether every field is populated well enough to be worth sending to the database.

public bool IsValid { get; }

Property Value

bool