From 80f0c749ea47a2d692d1e96e07a19ea473ccdcb2 Mon Sep 17 00:00:00 2001 From: Tomas Hrebicek Date: Sat, 30 Nov 2024 06:16:18 +0100 Subject: [PATCH] Preserve comparer of the original dictionary from ConfigurationProvider (#935) Signed-off-by: Tomas Hrebicek Co-authored-by: Whit Waldo --- .../DaprConfigurationStoreProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dapr.Extensions.Configuration/DaprConfigurationStoreProvider.cs b/src/Dapr.Extensions.Configuration/DaprConfigurationStoreProvider.cs index ea00f6c43..461ee9959 100644 --- a/src/Dapr.Extensions.Configuration/DaprConfigurationStoreProvider.cs +++ b/src/Dapr.Extensions.Configuration/DaprConfigurationStoreProvider.cs @@ -89,7 +89,7 @@ private async Task LoadAsync() var subscribeConfigurationResponse = await daprClient.SubscribeConfiguration(store, keys, metadata, cts.Token); await foreach (var items in subscribeConfigurationResponse.Source.WithCancellation(cts.Token)) { - var data = new Dictionary(Data); + var data = new Dictionary(Data, StringComparer.OrdinalIgnoreCase); foreach (var item in items) { id = subscribeConfigurationResponse.Id;