public ExtensionConfigurationBuilder Add(ExtensionRole role, string extensionId)
 {
     if (role != null)
     {
         if (!role.Default)
         {
             Add(role.RoleName, extensionId);
         }
         else
         {
             AddDefault(extensionId);
         }
     }
     return this;
 }
 public bool Exist(ExtensionRole role, string extensionId)
 {
     return role.Default ? ExistDefault(extensionId)
                         : Exist(role.RoleName, extensionId);
 }
Beispiel #3
0
 public bool Exist(ExtensionRole role, string extensionId)
 {
     return(role.Default ? ExistDefault(extensionId)
                         : Exist(role.RoleName, extensionId));
 }
 public bool Exist(ExtensionRole role, string extensionId)
 {
     return(role.RoleType == ExtensionRoleType.AllRoles ? ExistDefault(extensionId)
                                                        : Exist(role.RoleName, extensionId));
 }
 public bool Exist(ExtensionRole role, string extensionId)
 {
     return role.RoleType == ExtensionRoleType.AllRoles ? ExistDefault(extensionId)
                                                        : Exist(role.RoleName, extensionId);
 }