Exemple #1
0
 /// <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);
 }
Exemple #2
0
 internal void Bind(IModel channel, ExchangeName exchangeName, RoutingKey routingKey)
 {
     channel.QueueBind(Name.Value, exchangeName.Value, routingKey.Value, _arguments);
 }
Exemple #3
0
 protected internal void Bind(IModel channel, Exchange exchange, RoutingKey routingKey)
 {
     if (exchange.IsDefault) return;
     channel.QueueBind(Name.Value, exchange.Name.Value, routingKey.Value, _arguments);
 }