Exemple #1
0
 public AggregateManager(IEnumerable <AggregateModel> aggregates,
                         IEventStore store, IInboundMessageBus inbound, IEventBus bus, IServiceProvider svcs)
 {
     Aggregates = aggregates;
     Commands   = aggregates.SelectMany(c => c.CommandHandlers.Select(x => x.Command));
     Factories  = aggregates.Select(c => c.FactoryHandler.Command);
     Store      = store;
     Services   = svcs;
     Inbound    = inbound;
     Outbound   = bus;
     Inbound.MessageReceived += HandleMessage;
 }
Exemple #2
0
 public ProjectionManager(IEventStore store, IInboundMessageBus bus, IEnumerable <Model.ProjectionInstance> projections)
 {
     Store       = store;
     Bus         = bus;
     Projections = projections;
 }