Skip to content

Commit

Permalink
Introduce DictionaryResponse.Values (#8361) (#8366)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Bernd <git@flobernd.de>
  • Loading branch information
github-actions[bot] and flobernd authored Sep 27, 2024
1 parent 3e53279 commit 6bb513b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

using System;
using System.Collections.Generic;

using Elastic.Transport.Products.Elasticsearch;

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

protected IReadOnlyDictionary<TKey, TValue> 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<TKey, TValue> Values => BackingDictionary;
}

0 comments on commit 6bb513b

Please sign in to comment.