예제 #1
0
        public IStoreEvents Build(Action <IConfigureEventStore> cfg)
        {
            cfg.MustNotBeDefault();
            var settings = new EventStoreSettings();

            cfg(settings);
            settings.EnsureIsValid();
            EventStore.Logger.Information("Event Store configured");
            EventStore.Logger.Debug("Making sure the db is initiated");
            settings.Store.InitStorage();
            EventStore.Logger.Debug("Event store ready!");
            return(new StoreFacade(settings.Store, settings));
        }
예제 #2
0
 public StoreFacade(ISpecificDbStorage store, EventStoreSettings settings)
 {
     _store    = store;
     _settings = settings;
 }