Struct CharacterSessionLeaseData
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
characterIDlongCharacter whose session lease should be extended.
ownerServerIDlongServer that claims to own the session.
ownerTokenGuidOwnership token returned by the original claim.
Fields
CharacterID
Character whose session lease should be extended.
public readonly long CharacterID
Field Value
OwnerServerID
Server that claims to own the session.
public readonly long OwnerServerID
Field Value
OwnerToken
Ownership token returned by the original claim.
public readonly Guid OwnerToken
Field Value
Properties
IsValid
Whether every field is populated well enough to be worth sending to the database.
public bool IsValid { get; }