Пример #1
0
        public Uri GetDestinationAddress(string queueName, Action <IQueueConfigurator> configure = null)
        {
            var configurator = new QueueConfigurator(queueName);

            configure?.Invoke(configurator);

            return(configurator.GetQueueAddress(_hostAddress));
        }
Пример #2
0
        public Uri GetDestinationAddress(Type messageType, Action <IQueueConfigurator> configure = null)
        {
            var queueName = _messageNameFormatter.GetMessageName(messageType).ToString();

            var configurator = new QueueConfigurator(queueName);

            if (TypeMetadataCache.IsTemporaryMessageType(messageType))
            {
                configurator.AutoDeleteOnIdle = Defaults.TemporaryAutoDeleteOnIdle;
            }

            configure?.Invoke(configurator);

            return(configurator.GetQueueAddress(_hostAddress));
        }