public IncomeBuilder(IFactory <ReadModelContext> dbFactory, IPriceConverter priceConverter) { Ensure.NotNull(dbFactory, "dbFactory"); Ensure.NotNull(priceConverter, "priceConverter"); this.dbFactory = dbFactory; this.priceConverter = priceConverter; }
internal OutcomeBuilder(IFactory <ReadModelContext> readModelContextFactory, IPriceConverter priceConverter) { Ensure.NotNull(readModelContextFactory, "readModelContextFactory"); Ensure.NotNull(priceConverter, "priceConverter"); this.readModelContextFactory = readModelContextFactory; this.priceConverter = priceConverter; }
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; }
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; }