Beispiel #1
0
        }         // func GetConfigurationValue

        internal static object GetConfigurationValue(IDEConfigurationValue attr, string value)
        {
            var type = attr.Type;

            if (attr.IsList)
            {
                return(Procs.GetStrings(value).Select(v => GetConfigurationValueSingle(attr, v)).ToArray());
            }
            else
            {
                return(GetConfigurationValueSingle(attr, value));
            }
        }         // func GetAttributeValue
Beispiel #2
0
        private DECommonScope(IServiceProvider sp, IDEAuthentificatedUser user, bool useAuthentification, string allowGroups)
        {
            this.sp     = sp ?? throw new ArgumentNullException(nameof(sp));
            this.server = sp.GetService <IDEServer>(true);

            this.user                = user;
            this.userOwner           = user == null;
            this.useAuthentification = useAuthentification;
            this.allowGroups         = allowGroups == "*" || allowGroups == null
                                ? allowAllGroups
                                : (sp.GetService <IDEServer>(true).BuildSecurityTokens(Procs.GetStrings(allowGroups, true)) ?? restrictAllGroups);
        }         // ctor