c# - How to retrieve all topics from Azure Bus Service? -


i have azure service bus containing 12 topics. making scale-able application if number of topics isreduced or increased, application should use connectionstring topics names service bus.

how can topics name particular azure service bus?

please provide code sample retrieve topic list particular azure service bus.

thanks @ryanchu correct answer.

here required code segment implements above requirement ,

string connectionstring = cloudconfigurationmanager.getsetting("microsoft.servicebus.connectionstring"); namespacemanager nm = namespacemanager.createfromconnectionstring(connectionstring); ienumerable<topicdescription> topiclist=nm.gettopics();         foreach(var td in topiclist)         {             console.writeline(td.path);         } 

for more details , refer namespacemanager.gettopics() documentation


Comments