I think you are calling GetAuthRule which uses namespace manager to get the queue and auth rule


In the next line you again call namespace manager to getqueue


Basically same thing is called twice



Sent from Windows Mail



From: Abdelrahman Elogeel
Sent: ‎Friday‎, ‎July‎ ‎19‎, ‎2013 ‎12‎:‎49‎ ‎PM
To: WindowsAzure/azure-sdk-tools
Cc: RajatTalwar


In WindowsAzurePowershell/src/Management.Utilities/ServiceBus/ServiceBusClientExtensions.cs:
> +        /// <param name="ruleName">The SAS authorization rule name</param>
> +        /// <param name="primaryKey">The SAS primary key. It'll be generated if empty</param>
> +        /// <param name="secondaryKey">The SAS secondary key</param>
> +        /// <param name="permissions">Set of permissions given to the rule</param>
> +        /// <returns>The created Shared Access Signature authorization rule</returns>
> +        public ExtendedAuthorizationRule UpdateSharedAccessAuthorization(
> +            string namespaceName,
> +            string entityName,
> +            ServiceBusEntityType entityType,
> +            string ruleName,
> +            string primaryKey,
> +            string secondaryKey,
> +            params AccessRights[] permissions)
> +        {
> +            bool removed = false;
> +            SharedAccessAuthorizationRule oldRule = (SharedAccessAuthorizationRule)GetAuthorizationRule(


That's what is happening now, right?

—
Reply to this email directly or view it on GitHub.