예제 #1
0
 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);
         }
     }
 }
예제 #3
0
 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;
 }