public EventStoreSnapshotStorageProvider(IEventStoreStorageConnectionProvider eventStoreStorageConnectionProvider, IEventStoreStorageCore eventStoreStorageCore, IEventStoreSettings eventStoreSettings) { _eventStoreStorageConnectionProvider = eventStoreStorageConnectionProvider; _eventStoreStorageCore = eventStoreStorageCore; _eventStoreSettings = eventStoreSettings; }
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); }
public EventStoreAdvanced(IEventStoreSettings settings) { _settings = settings; }
public EventStore(IEventStoreSettings settings) { Advanced = new EventStoreAdvanced(settings); _settings = settings; }