Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

How to manage the SAS information in .NET client library

$
0
0

I want to manage SAS info in .NET client library, including add a new rule to the topic, modify the exist rule, or even delete. Is this possible?

From my practice, I can only add a new rule before the very first time I create the topic.

NamespaceManager nm = NamespaceManager.CreateFromConnectionString(nsConnectionString);
contosoTListenRule = new SharedAccessAuthorizationRule("contosoTListenKey2",
    SharedAccessAuthorizationRule.GenerateRandomKey(),
    new[] { AccessRights.Listen });
TopicDescription td = new TopicDescription(topicPath);
td.Authorization.Add(contosoTListenRule);


nm.CreateTopic(td);

Thanks.


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>