Guest User

Untitled

a guest
May 24th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. amqpChannel.ExchangeDeclare("myexchange", ExchangeType.Fanout);
  2. var queue = amqpChannel.QueueDeclare(
  3. queue: "myqueue",
  4. durable: true,
  5. exclusive: false,
  6. autoDelete: false,
  7. arguments: null);
  8. amqpChannel.QueueBind("myqueue", "myexchange", null);
  9.  
  10. public static void QueueBind(this IModel model, string queue, string exchange, string routingKey, IDictionary<string, object> arguments = null)
  11. {
  12. model.QueueBind(queue, exchange, routingKey, arguments);
  13. }
Add Comment
Please, Sign In to add comment