Skip to content

Commit 08ffdb4

Browse files
floberndgithub-actions[bot]
authored andcommitted
Introduce DictionaryResponse.Values (#8361)
1 parent f7c637e commit 08ffdb4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System;
66
using System.Collections.Generic;
7+
78
using Elastic.Transport.Products.Elasticsearch;
89

910
#if ELASTICSEARCH_SERVERLESS
@@ -25,4 +26,8 @@ internal DictionaryResponse(IReadOnlyDictionary<TKey, TValue> dictionary)
2526
internal DictionaryResponse() => BackingDictionary = EmptyReadOnly<TKey, TValue>.Dictionary;
2627

2728
protected IReadOnlyDictionary<TKey, TValue> BackingDictionary { get; }
29+
30+
// TODO: Remove after exposing the values in the derived responses
31+
[Obsolete("Temporary workaround. This field will be removed in the future and replaced by custom accessors in the derived classes.")]
32+
public IReadOnlyDictionary<TKey, TValue> Values => BackingDictionary;
2833
}

0 commit comments

Comments
 (0)