private void HandleSubscriptionDropped(IAllStreamSubscription subscription, SubscriptionDroppedReason reason, Exception exception = null)
        {
            if (_cancellationRequestedByUser)
            {
                _logger.LogInformation($"Subscription stopped by user: {subscription.Name}");
                _connected = false;
                return;
            }

            if (exception != null)
            {
                _logger.LogError(exception, $"{subscription.Name} subscription dropped: {reason.ToString()}");
            }
            else
            {
                _logger.LogError($"{subscription.Name} subscription dropped: {reason.ToString()}");
            }
            _connected = false;
        }
 private void SubscriptionDropped(global::EventStore.Client.PersistentSubscription arg1,
                                  SubscriptionDroppedReason arg2,
                                  Exception?arg3) =>
 this.SubscriptionDropped(arg2.ToString());