public void Redis_JournalSettings_must_have_default_values() { var redisPersistence = EventStorePersistence.Get(Sys); redisPersistence.JournalSettings.ReadBatchSize.Should().Be(500); redisPersistence.JournalSettings.Adapter.Should().Be("default"); redisPersistence.JournalSettings.ConnectionName.Should().Be(string.Empty); }
public EventStoreJournal() { _settings = EventStorePersistence.Get(Context.System).JournalSettings; _log = Context.GetLogger(); var connectionString = _settings.ConnectionString; var connectionName = _settings.ConnectionName; _connRead = EventStoreConnection .Create(connectionString, $"{connectionName}.Read"); _connRead.ConnectAsync().Wait(); _conn = EventStoreConnection .Create(connectionString, connectionName); _conn.ConnectAsync() .PipeTo( Self, success: () => new Status.Success("Connected"), failure: ex => new Status.Failure(ex) ); _subscriptions = new EventStoreSubscriptions(_connRead, Context); }
public EventStoreSnapshotStore() { _settings = EventStorePersistence.Get(Context.System).SnapshotStoreSettings; _log = Context.GetLogger(); }
public EventStoreJournal() { _settings = EventStorePersistence.Get(Context.System).JournalSettings; _log = Context.GetLogger(); }
public TransactionStream() { _settings = EventStorePersistence.Get(Context.System).JournalSettings; _log = Context.GetLogger(); }