-
-
Save johndowns/123584fce953bfd022999e36a8152d8a 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
try | |
{ | |
var serviceBusNamespaceManager = NamespaceManager.CreateFromConnectionString(ConfigurationManager.AppSettings["ServiceBusNamespaceConnectionString"]); | |
await serviceBusNamespaceManager.GetQueuesAsync(); | |
} | |
catch (UnauthorizedAccessException ex) | |
{ | |
return req.CreateResponse(HttpStatusCode.InternalServerError, "The Service Bus namespace key is not valid."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment