public async Task ReadAllAsync(long fromSequenceIdInclusive, ISubscription subscription, int limit, CancellationToken cancellationToken)
        {
            var wrapper = new SubscriptionWrapper(subscription)
            {
                BeforeOnNext = d => StoreScanCounter.IncCounter1()
            };

            await StoreScanCounter.CaptureAsync(() =>
                                                _store.ReadAllAsync(fromSequenceIdInclusive, wrapper, limit, cancellationToken)
                                                ).ConfigureAwait(false);
        }
        public async Task ReadBackwardAsync(
            string partitionId,
            long fromUpperIndexInclusive,
            ISubscription subscription,
            long toLowerIndexInclusive,
            int limit,
            CancellationToken cancellationToken)
        {
            var counter = new SubscriptionWrapper(subscription)
            {
                BeforeOnNext = data => ReadBackwardCounter.IncCounter1()
            };

            await ReadBackwardCounter.CaptureAsync(() =>
                                                   _store.ReadBackwardAsync(
                                                       partitionId,
                                                       fromUpperIndexInclusive,
                                                       counter,
                                                       toLowerIndexInclusive,
                                                       limit,
                                                       cancellationToken
                                                       )).ConfigureAwait(false);
        }