/// <summary> /// If messages expires is setup, send the message to another exchange and routing when expired. /// </summary> /// <param name="exchange">Exchange to which messages will be republished if they are rejected or expire.</param> /// <param name="routing">Optional replacement routing key to use when a message is dead-lettered. If this is not set, the message's original routing key will be used.</param> /// <returns></returns> public Queue SendExpiredMessagesTo(Exchange exchange, RoutingKey routing) { return SendExpiredMessagesTo(exchange.Name, routing); }
internal void Bind(IModel channel, ExchangeName exchangeName, RoutingKey routingKey) { channel.QueueBind(Name.Value, exchangeName.Value, routingKey.Value, _arguments); }
protected internal void Bind(IModel channel, Exchange exchange, RoutingKey routingKey) { if (exchange.IsDefault) return; channel.QueueBind(Name.Value, exchange.Name.Value, routingKey.Value, _arguments); }