Beispiel #1
0
        public EventStoreSubscriptionSource(MemstateSettings settings, IEventStoreConnection connection)
        {
            _logger           = settings.CreateLogger <EventStoreSubscriptionSource>();
            _memstateSettings = settings;
            _connection       = connection;
            var eventStoreSettings = new EventStoreSettings(settings);

            _serializer = eventStoreSettings.CreateSerializer();
            _streamName = eventStoreSettings.StreamName;
        }
Beispiel #2
0
        public EventStoreWriter(MemstateSettings settings, IEventStoreConnection connection)
            : base(settings)
        {
            _connection = connection;
            _logger     = settings.CreateLogger <EventStoreWriter>();
            var eventStoreSettings = new EventStoreSettings(settings);

            _serializer = eventStoreSettings.CreateSerializer();
            _streamName = eventStoreSettings.StreamName;
        }