Skip to content

Instantly share code, notes, and snippets.

@mclasson
Last active December 19, 2015 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mclasson/5993925 to your computer and use it in GitHub Desktop.
Save mclasson/5993925 to your computer and use it in GitHub Desktop.
How to connect to a Microsoft Azure Service Bus Queue
string connectionString = "<your connectionstring here>";
var namespaceManager = NamespaceManager.CreateFromConnectionString(connectionString);
if (!namespaceManager.QueueExists("orderqueue"))
{
namespaceManager.CreateQueue("orderqueue");
}
var Client = QueueClient.CreateFromConnectionString(connectionString, "orderqueue");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment