Skip to content

Instantly share code, notes, and snippets.

@thiagoloureiro
Created October 20, 2017 02:44
Show Gist options
  • Save thiagoloureiro/5331d0ef5478c9e7e258494743ebc8f9 to your computer and use it in GitHub Desktop.
Save thiagoloureiro/5331d0ef5478c9e7e258494743ebc8f9 to your computer and use it in GitHub Desktop.
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