Start typed state rebuild
This commit is contained in:
parent
ab2c294464
commit
89e91ff4d7
16 changed files with 476 additions and 0 deletions
23
Aetheria.State/Documents/AetheriaRuntimeSession.cs
Normal file
23
Aetheria.State/Documents/AetheriaRuntimeSession.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using GameCult.Caching;
|
||||
using MessagePack;
|
||||
|
||||
namespace Aetheria.State.Documents;
|
||||
|
||||
[CultDocument("aetheria.runtime_session", "aetheria.runtime_session.v1")]
|
||||
[MessagePackObject]
|
||||
public sealed class AetheriaRuntimeSession
|
||||
{
|
||||
[Key(0)]
|
||||
[CultName]
|
||||
public string RuntimeId { get; set; } = "";
|
||||
|
||||
[Key(1)]
|
||||
[CultIndex("role")]
|
||||
public string Role { get; set; } = "local";
|
||||
|
||||
[Key(2)]
|
||||
public string StartedAtUtc { get; set; } = "";
|
||||
|
||||
[Key(3)]
|
||||
public string LastSeenAtUtc { get; set; } = "";
|
||||
}
|
||||
Loading…
Reference in a new issue