fix(core): Adds priority support for GenericPersistence (#545)
This commit is contained in:
parent
432f8d2b70
commit
1ed23459bb
2 changed files with 6 additions and 3 deletions
|
|
@ -23,13 +23,15 @@ namespace Server
|
|||
{
|
||||
public static class Persistence
|
||||
{
|
||||
public const int DefaultPriority = 100;
|
||||
|
||||
public static readonly SortedSet<RegistryEntry> _registry = new(new RegistryEntryComparer());
|
||||
|
||||
public static void Register(
|
||||
Action serializer,
|
||||
Action<string> snapshotWriter,
|
||||
Action<string> deserializer,
|
||||
int priority = 100
|
||||
int priority = DefaultPriority
|
||||
)
|
||||
{
|
||||
_registry.Add(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue