public EventStoreSnapshotStorageProvider(IEventStoreStorageConnectionProvider eventStoreStorageConnectionProvider,
                                          IEventStoreStorageCore eventStoreStorageCore,
                                          IEventStoreSettings eventStoreSettings)
 {
     _eventStoreStorageConnectionProvider = eventStoreStorageConnectionProvider;
     _eventStoreStorageCore = eventStoreStorageCore;
     _eventStoreSettings    = eventStoreSettings;
 }
示例#2
0
        public EventRepository(IEventStoreSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _events = database.GetCollection <Event>(settings.EventsCollectionName);
            _genres = database.GetCollection <Genre>(settings.GenresCollectionName);
        }
示例#3
0
 public EventStoreAdvanced(IEventStoreSettings settings)
 {
     _settings = settings;
 }
示例#4
0
 public EventStore(IEventStoreSettings settings)
 {
     Advanced  = new EventStoreAdvanced(settings);
     _settings = settings;
 }