Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ServiceBusClientExtensions.CreateExtendedAuthorizationRule C# (CSharp) Méthode

CreateExtendedAuthorizationRule() private méthode

private CreateExtendedAuthorizationRule ( AuthorizationRule rule, string namespaceName ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule
rule AuthorizationRule
namespaceName string
Résultat Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule
        private ExtendedAuthorizationRule CreateExtendedAuthorizationRule(
            AuthorizationRule rule,
            string namespaceName)
        {
            string connectionString = string.Empty;

            if (IsActiveNamespace(namespaceName))
            {
                connectionString = GetConnectionString(namespaceName, rule.KeyName);
            }

            return new ExtendedAuthorizationRule()
            {
                Rule = rule,
                Name = rule.KeyName,
                Namespace = namespaceName,
                Permission = rule.Rights.ToList(),
                ConnectionString = connectionString
            };
        }

Same methods

ServiceBusClientExtensions::CreateExtendedAuthorizationRule ( AuthorizationRule rule, string namespaceName, string entityName, ServiceBusEntityType entityType ) : Microsoft.WindowsAzure.Commands.Utilities.ServiceBus.ExtendedAuthorizationRule