private static string ToInternalQueueName(string queue, Type consumerType, AutoConfigureMode autoConfigureMode)
        {
            string iq = string.Format("{0}.{1}", consumerType.FullName, queue);

            // Max queue length is 255 characters in RabbitMQ
            if (iq.Length > 255)
            {
                iq = iq.Remove(255);
            }

            if (autoConfigureMode == AutoConfigureMode.None)
            {
                return iq;
            }

            return string.Format("{0}.{1}", autoConfigureMode, iq);
        }
 public RegisteredConsumer(IRegisteredConsumer other, AutoConfigureMode autoConfigureMode)
 {
     this.Other = other;
     this.AutoConfigureMode = autoConfigureMode;
     this.Queue = ToInternalQueueName(this.Other.Queue, this.Other.ConsumerType, autoConfigureMode);
 }