public void Can_determine_TempQueue_with_Custom_QueuePrefix()
        {
            MqQueueNames.SetQueuePrefix("site1.");

            var tmpName = MqQueueNames.GetTempQueueName();

            Assert.That(MqQueueNames.IsTempQueue(tmpName), Is.True);

            MqQueueNames.SetQueuePrefix("");
        }
        public void Can_determine_TempQueue_with_Custom_QueueNameFm()
        {
            MqQueueNames.ResolveQueueNameFn = (typeName, suffix) =>
                                              string.Format("SITE.{0}{1}", typeName, suffix.ToUpper());

            var tmpName = MqQueueNames.GetTempQueueName();

            Assert.That(MqQueueNames.IsTempQueue(tmpName), Is.True);

            MqQueueNames.ResolveQueueNameFn = MqQueueNames.ResolveQueueName;
        }
        /// <inheritdoc />
        public virtual string GetTempQueueName()
        {
            var anonMq = this.Channel.QueueDeclare(MqQueueNames.GetTempQueueName(), false, true, true, null);

            return(anonMq.QueueName);
        }
        public void Can_determine_TempQueue()
        {
            var tmpName = MqQueueNames.GetTempQueueName();

            Assert.That(MqQueueNames.IsTempQueue(tmpName), Is.True);
        }
Пример #5
0
 /// <inheritdoc />
 public string GetTempQueueName()
 {
     return(MqQueueNames.GetTempQueueName());
 }