How to connect to a Microsoft Azure Service Bus Queue
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
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