Esempio n. 1
0
        private EventStore(IProjectorHost projectorHost, IDomainEventDispatcher domainEventDispatcher)
        {
            _eventStoreContext = new EventStoreDbContext(new DbContextOptionsBuilder <EventStoreDbContext>()
                                                         .UseInMemoryDatabase(databaseName: "EventStore")
                                                         .EnableSensitiveDataLogging()
                                                         .Options);

            (_projectorHost, _domainEventDispatcher) = (projectorHost, domainEventDispatcher);
        }
Esempio n. 2
0
 public static EventStore Create(IProjectorHost projectorHost, IDomainEventDispatcher domainEventDispatcher) =>
 new EventStore(projectorHost, domainEventDispatcher);