From ca9bb30a2582f2ea30045e62c812980d8f84e53d Mon Sep 17 00:00:00 2001 From: Jason Roberts Date: Wed, 14 Jun 2017 14:23:09 +0800 Subject: [PATCH] Closes #143 --- .../Internal/AppSettingsProvider.cs | 13 +------------ .../FeatureToggle.UAP.Tests.nuget.props | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/FeatureToggle.Shared/Internal/AppSettingsProvider.cs b/src/FeatureToggle.Shared/Internal/AppSettingsProvider.cs index b4f01f9..c703703 100644 --- a/src/FeatureToggle.Shared/Internal/AppSettingsProvider.cs +++ b/src/FeatureToggle.Shared/Internal/AppSettingsProvider.cs @@ -46,16 +46,6 @@ public IConfigurationRoot Configuration _configuration = value; } } - //public AppSettingsProvider(IConfigurationRoot customConfig) - //{ - // Configuration = customConfig; - //} - - //public AppSettingsProvider() - //{ - // var builder = new ConfigurationBuilder().SetBasePath(AppContext.BaseDirectory).AddJsonFile("appSettings.json"); - // Configuration = builder.Build(); - //} #endif public bool EvaluateBooleanToggleValue(IFeatureToggle toggle) @@ -128,8 +118,7 @@ public DateTime EvaluateDateTimeToggleValue(IFeatureToggle toggle) ValidateKeyExists(key); - var configValue = GetConfigValue(key); - //var configValue = GetConfigValue ConfigurationManager.AppSettings[key]; + var configValue = GetConfigValue(key); var parser = new ConfigurationDateParser(); diff --git a/src/Tests/FeatureToggle.UAP.Tests/FeatureToggle.UAP.Tests.nuget.props b/src/Tests/FeatureToggle.UAP.Tests/FeatureToggle.UAP.Tests.nuget.props index 49f4ec8..fc4b888 100644 --- a/src/Tests/FeatureToggle.UAP.Tests/FeatureToggle.UAP.Tests.nuget.props +++ b/src/Tests/FeatureToggle.UAP.Tests/FeatureToggle.UAP.Tests.nuget.props @@ -7,7 +7,7 @@ $(UserProfile)\.nuget\packages\ C:\Users\Admin\.nuget\packages\ ProjectJson - 4.1.0 + 4.2.0 $(MSBuildAllProjects);$(MSBuildThisFileFullPath)