예제 #1
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);
        }
예제 #2
0
 public EventStoreJournal()
 {
     _settings = EventStorePersistence.Get(Context.System).JournalSettings;
     _log      = Context.GetLogger();
 }
예제 #3
0
 public TransactionStream()
 {
     _settings = EventStorePersistence.Get(Context.System).JournalSettings;
     _log      = Context.GetLogger();
 }