示例#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();
 }
 public TransactionStream()
 {
     _settings = EventStorePersistence.Get(Context.System).JournalSettings;
     _log      = Context.GetLogger();
 }