private EventStore(IProjectorHost projectorHost, IDomainEventDispatcher domainEventDispatcher) { _eventStoreContext = new EventStoreDbContext(new DbContextOptionsBuilder <EventStoreDbContext>() .UseInMemoryDatabase(databaseName: "EventStore") .EnableSensitiveDataLogging() .Options); (_projectorHost, _domainEventDispatcher) = (projectorHost, domainEventDispatcher); }
public static EventStore Create(IProjectorHost projectorHost, IDomainEventDispatcher domainEventDispatcher) => new EventStore(projectorHost, domainEventDispatcher);