From 793b63eb0511c90f168c76a17c57c3eae9a4f8a8 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Wed, 16 Apr 2014 17:37:09 -0700 Subject: [PATCH] Fix a bug in azure environment variables parsing --- .../Sources/EnvironmentVariablesConfigurationSource.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.ConfigurationModel/Sources/EnvironmentVariablesConfigurationSource.cs b/src/Microsoft.AspNet.ConfigurationModel/Sources/EnvironmentVariablesConfigurationSource.cs index f7281c1..94f73a1 100644 --- a/src/Microsoft.AspNet.ConfigurationModel/Sources/EnvironmentVariablesConfigurationSource.cs +++ b/src/Microsoft.AspNet.ConfigurationModel/Sources/EnvironmentVariablesConfigurationSource.cs @@ -72,7 +72,8 @@ namespace Microsoft.AspNet.ConfigurationModel.Sources } else if (key.StartsWith(AppSettingPrefix, StringComparison.OrdinalIgnoreCase)) { - prefix = AppSettingPrefix; + yield return new DictionaryEntry(key.Substring(AppSettingPrefix.Length), entry.Value); + yield break; } else {