fix(core): Fixes serialization registry (#574)
This commit is contained in:
parent
837ca91843
commit
0d7ec99cbe
4 changed files with 31 additions and 7 deletions
|
|
@ -38,7 +38,7 @@ namespace Server.Accounting
|
|||
public static int Count => _accountsByName.Count;
|
||||
|
||||
public static void Configure() =>
|
||||
Persistence.Register(Serialize, WriteSnapshot, Deserialize);
|
||||
Persistence.Register("Accounts", Serialize, WriteSnapshot, Deserialize);
|
||||
|
||||
internal static void Serialize() =>
|
||||
EntityPersistence.SaveEntities(_accountsById.Values, account => account.Serialize());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue