Esempio n. 1
0
        /// <summary>
        /// Generic Values.
        /// </summary>
        /// <param name="Key"></param>
        /// <param name="Auth"></param>
        /// <param name="fallback"></param>
        /// <returns></returns>
        public static string GetValue(string Key, string Auth, string fallback = null)
        {
            string value = fallback;

            OperatorAuthentication.AuthedAction(Auth, () =>
            {
                if (ConfigurationData != null)
                {
                    var v = ConfigurationData.FindValue(Key.ToUpper());
                    if (v is not null)
                    {
                        value = v;
                    }
                }
            }, false, true, PermissionID.ReadConfig);
            return(value);
        }