Add name to InMemory services

This commit is contained in:
2025-04-14 23:40:17 +02:00
parent 147ae47155
commit d05bf62bf0
6 changed files with 14 additions and 4 deletions
@@ -8,7 +8,7 @@ import java.util.UUID
class GameEventBusInMemory :
GameEventBus,
Bus<GameEvent> by BusInMemory(),
Bus<GameEvent> by BusInMemory(GameEventBusInMemory::class),
Comparable<GameEventBusInMemory> {
private val instanceId: UUID = UUID.randomUUID()
@@ -21,6 +21,7 @@ class GameListRepositoryInMemory(
) : GameListRepository {
private val projectionsSnapshot =
ProjectionSnapshotRepositoryInMemory(
name = GameListRepositoryInMemory::class,
eventStore = eventStore,
snapshotCacheConfig = snapshotConfig,
applyToProjection = GameList::apply,
@@ -9,7 +9,7 @@ import java.util.UUID
class GameProjectionBusInMemory :
GameProjectionBus,
Bus<Projection<GameId>> by BusInMemory(),
Bus<Projection<GameId>> by BusInMemory(GameProjectionBusInMemory::class),
Comparable<GameProjectionBusInMemory> {
private val instanceId: UUID = UUID.randomUUID()
@@ -21,6 +21,7 @@ class GameStateRepositoryInMemory(
) : GameStateRepository {
private val projectionsSnapshot =
ProjectionSnapshotRepositoryInMemory(
name = GameStateRepositoryInMemory::class,
eventStore = eventStore,
snapshotCacheConfig = snapshotConfig,
applyToProjection = GameState::apply,