public void AddListenerSubscription <T>(Action <ListenerSubscription <T> > subscription)
        {
            if (subscription == null)
            {
                throw new ArgumentNullException();
            }

            var sub = new ListenerSubscription <T>();

            subscription.Invoke(sub);
            AddSubscription(sub);
        }
        public RabbitMQServiceBuilder AddListenerSubscription <T>(Action <ListenerSubscription <T> > subscription)
        {
            if (subscription == null)
            {
                return(this);
            }

            var sub = new ListenerSubscription <T>();

            subscription.Invoke(sub);
            subscriptions.Add(sub);
            return(this);
        }