Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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();
 }
Exemplo n.º 4
0
 public EventStoreJournal()
 {
     _settings = EventStorePersistence.Get(Context.System).JournalSettings;
     _log      = Context.GetLogger();
 }
Exemplo n.º 5
0
 public TransactionStream()
 {
     _settings = EventStorePersistence.Get(Context.System).JournalSettings;
     _log      = Context.GetLogger();
 }