Ejemplo n.º 1
0
 public IncomeBuilder(IFactory <ReadModelContext> dbFactory, IPriceConverter priceConverter)
 {
     Ensure.NotNull(dbFactory, "dbFactory");
     Ensure.NotNull(priceConverter, "priceConverter");
     this.dbFactory      = dbFactory;
     this.priceConverter = priceConverter;
 }
Ejemplo n.º 2
0
 internal OutcomeBuilder(IFactory <ReadModelContext> readModelContextFactory, IPriceConverter priceConverter)
 {
     Ensure.NotNull(readModelContextFactory, "readModelContextFactory");
     Ensure.NotNull(priceConverter, "priceConverter");
     this.readModelContextFactory = readModelContextFactory;
     this.priceConverter          = priceConverter;
 }
Ejemplo n.º 3
0
 public BootstrapTask(IQueryHandlerCollection queryHandlers, IEventHandlerCollection eventHandlers, IFactory <ReadModelContext> dbFactory, IPriceConverter priceConverter)
 {
     Ensure.NotNull(queryHandlers, "queryHandlers");
     Ensure.NotNull(eventHandlers, "eventHandlers");
     Ensure.NotNull(dbFactory, "dbFactory");
     Ensure.NotNull(priceConverter, "priceConverter");
     this.queryHandlers  = queryHandlers;
     this.eventHandlers  = eventHandlers;
     this.dbFactory      = dbFactory;
     this.priceConverter = priceConverter;
 }
Ejemplo n.º 4
0
 public UpgradeService(ICommandDispatcher commandDispatcher, IEventRebuilderStore eventStore, IFormatter eventFormatter, IFactory <EventSourcingContext> eventSourceContextFactory, IFactory <ReadModelContext> readModelContextFactory, IFactory <ApplicationDataContainer> storageContainerFactory, IPriceConverter priceConverter, Func <IKey> userKeyGetter)
     : base(storageContainerFactory, CurrentVersion)
 {
     Ensure.NotNull(commandDispatcher, "commandDispatcher");
     Ensure.NotNull(eventStore, "eventStore");
     Ensure.NotNull(eventFormatter, "eventFormatter");
     Ensure.NotNull(eventSourceContextFactory, "eventSourceContextFactory");
     Ensure.NotNull(readModelContextFactory, "readModelContextFactory");
     Ensure.NotNull(priceConverter, "priceConverter");
     Ensure.NotNull(userKeyGetter, "userKeyGetter");
     this.commandDispatcher         = commandDispatcher;
     this.eventStore                = eventStore;
     this.eventFormatter            = eventFormatter;
     this.eventSourceContextFactory = eventSourceContextFactory;
     this.readModelContextFactory   = readModelContextFactory;
     this.priceConverter            = priceConverter;
     this.userKeyGetter             = userKeyGetter;
 }