Reformatted and cleaned up
This commit is contained in:
parent
5e94632260
commit
ec652bf9c6
@ -14,11 +14,11 @@ public static void Main()
|
||||
{
|
||||
channel.ExchangeDeclare("logs", "fanout");
|
||||
|
||||
var queue_name = channel.QueueDeclare();
|
||||
var queueName = channel.QueueDeclare();
|
||||
|
||||
channel.QueueBind(queue_name, "logs", "");
|
||||
channel.QueueBind(queueName, "logs", "");
|
||||
var consumer = new QueueingBasicConsumer(channel);
|
||||
channel.BasicConsume(queue_name, true, consumer);
|
||||
channel.BasicConsume(queueName, true, consumer);
|
||||
|
||||
Console.WriteLine(" [*] Waiting for logs." +
|
||||
"To exit press CTRL+C");
|
||||
|
Loading…
Reference in New Issue
Block a user