Exemple #1
0
        public Task SubscribeToEvents()
        {
            EventStoreConnection.SubscribeToStreamFrom(
                GetStreamName(),
                _subscribeFromEvent,
                CatchUpSubscriptionSettings.Default,
                (_, e) => DispatchEvents(e));

            return(Task.CompletedTask);
        }