Skip to content

Instantly share code, notes, and snippets.

@mclasson

mclasson/gist:5993925

Last active Dec 19, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.