Interface IPersistenceUnitOfWork
- Namespace
- Moongate.Persistence.Interfaces.Persistence
- Assembly
- Moongate.Persistence.dll
Coordinates repositories and persistence lifecycle for world state.
public interface IPersistenceUnitOfWork
Properties
Accounts
Gets the account repository.
IAccountRepository Accounts { get; }
Property Value
Items
Gets the item repository.
IItemRepository Items { get; }
Property Value
Mobiles
Gets the mobile repository.
IMobileRepository Mobiles { get; }
Property Value
Methods
AllocateNextAccountId()
Allocates the next progressive account serial identifier.
Serial AllocateNextAccountId()
Returns
AllocateNextItemId()
Allocates the next progressive item serial identifier.
Serial AllocateNextItemId()
Returns
AllocateNextMobileId()
Allocates the next progressive mobile serial identifier.
Serial AllocateNextMobileId()
Returns
InitializeAsync(CancellationToken)
Loads state from snapshot and replays journal entries.
ValueTask InitializeAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
SaveSnapshotAsync(CancellationToken)
Writes a new snapshot and resets the journal.
ValueTask SaveSnapshotAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken