private void EnqueueCommands(IPendingCommandRepository commandRepository, IList<IAggregateCommand> commands) { if (commandRepository != null) { foreach (var cmd in commands) { commandRepository.StorePendingCommand(cmd); } } }
private void EnqueueCommands(IPendingCommandRepository commandRepository, IList <IAggregateCommand> commands) { if (commandRepository != null) { foreach (var cmd in commands) { commandRepository.StorePendingCommand(cmd); } } }
public SyncAgent(IMergableEventStore localEventStore, IEventStore remoteEventStore, IRepository <ISyncState> syncStateRepository, IPendingCommandRepository pendingCommands, ISnapshotRepository snapshotRepository) { this.localEventStore = localEventStore; this.remoteEventStore = remoteEventStore; this.syncStateRepository = syncStateRepository; this.pendingCommands = pendingCommands; this.snapshotRepository = snapshotRepository; }