From 549d2af0769d75781b6302444dedae38d49ffd64 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Fri, 27 Sep 2024 11:45:13 +0200 Subject: [PATCH] Introduce `DictionaryResponse.Values` (#8361) --- .../Core/Response/DictionaryResponse.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs b/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs index 1ad8146c5c6..63e3e4630db 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs +++ b/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; + using Elastic.Transport.Products.Elasticsearch; #if ELASTICSEARCH_SERVERLESS @@ -25,4 +26,8 @@ internal DictionaryResponse(IReadOnlyDictionary dictionary) internal DictionaryResponse() => BackingDictionary = EmptyReadOnly.Dictionary; protected IReadOnlyDictionary BackingDictionary { get; } + + // TODO: Remove after exposing the values in the derived responses + [Obsolete("Temporary workaround. This field will be removed in the future and replaced by custom accessors in the derived classes.")] + public IReadOnlyDictionary Values => BackingDictionary; }