Exemplo n.º 1
0
        public void Declare(Declare.Declare declare)
        {
            var args = new Dictionary <string, object>
            {
                { "x-dead-letter-exchange", _configuration["RabbitConfig:ExchangeRetry"] }
            };

            _channel.ExchangeDeclare(_configuration["DessertQueueConfiguration:ExchangeDessertConsumer"], _configuration["DessertQueueConfiguration:ExchangeDessertType"], true, false, null);
            _channel.QueueDeclare(_configuration["DessertQueueConfiguration:DessertConsumer"], true, false, false);
            _channel.QueueBind(_configuration["DessertQueueConfiguration:DessertConsumer"], _configuration["DessertQueueConfiguration:ExchangeDessertConsumer"], _configuration["DessertQueueConfiguration:DessertConsumer"], null);
        }
Exemplo n.º 2
0
        public void Declare(Declare.Declare declare)
        {
            var queueArgs = new Dictionary <string, object>
            {
                { "x-dead-letter-exchange", _configuration["RabbitConfig:ExchangeRetry"] }
            };

            _channel.ExchangeDeclare(_configuration["FriesQueueConfiguration:ExchangeFriesError"], _configuration["FriesQueueConfiguration:ExchangeFriesType"], true, false, null);
            _channel.QueueDeclare(_configuration["FriesQueueConfiguration:FriesError"], true, false, false);
            _channel.QueueBind(_configuration["FriesQueueConfiguration:FriesError"], _configuration["FriesQueueConfiguration:ExchangeFriesError"], _configuration["FriesQueueConfiguration:FriesError"], null);
        }
        public void Declare(Declare.Declare declare)
        {
            var args = new Dictionary <string, object>
            {
                { "x-message-ttl", 30000 },
                { "x-dead-letter-exchange", _configuration["FriesQueueConfiguration:ExchangeFriesConsumer"] }
            };

            _channel.ExchangeDeclare(_configuration["FriesQueueConfiguration:ExchangeFriesRetry"], _configuration["FriesQueueConfiguration:ExchangeFriesType"], true, false, null);
            _channel.QueueDeclare(_configuration["FriesQueueConfiguration:FriesRetry"], true, false, false);
            _channel.QueueBind(_configuration["FriesQueueConfiguration:FriesRetry"], _configuration["FriesQueueConfiguration:ExchangeFriesRetry"], _configuration["FriesQueueConfiguration:FriesRetry"], null);
        }