Ejemplo n.º 1
0
        public static bool IsAzureActive()
        {
            var root            = ManageAppSettingFileAccess.GetTheAppSettingInformation();
            var valueInSettings = root.GetSection(AppSettingsNames.AzureEnabled.ToString());

            return(Convert.ToBoolean(valueInSettings.Value));
        }
Ejemplo n.º 2
0
        public static string GetConnectionStringFromAppSetting()
        {
            var root = ManageAppSettingFileAccess.GetTheAppSettingInformation();

            return(root.GetConnectionString(AppSettingsNames.DefaultConnection.ToString()));
        }
Ejemplo n.º 3
0
        public static IConfigurationSection GetTheAzureOptionsForSSO()
        {
            var root = ManageAppSettingFileAccess.GetTheAppSettingInformation();

            return(root.GetSection(AppSettingsNames.AzureAd.ToString()));
        }