Created
October 20, 2017 02:44
-
-
Save thiagoloureiro/5331d0ef5478c9e7e258494743ebc8f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public QueueDeclareOk CreateQueue(string queueName, IConnection connection) | |
{ | |
QueueDeclareOk queue; | |
using (var channel = connection.CreateModel()) | |
{ | |
queue = channel.QueueDeclare(queueName, false, false, false, null); | |
} | |
return queue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment