<PackageReference Include="Grpc.Net.Client" Version="2.67.0" />

Grpc.Net.Client.Balancer.BalancerAttributes

public sealed class BalancerAttributes : IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IReadOnlyDictionary<string, object>, IReadOnlyCollection<KeyValuePair<string, object>>
Collection of load balancing metadata attributes.

Note: Experimental API that can change or be removed without any prior notice.

namespace Grpc.Net.Client.Balancer { public sealed class BalancerAttributes : IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IReadOnlyDictionary<string, object>, IReadOnlyCollection<KeyValuePair<string, object>> { public static readonly BalancerAttributes Empty; [Nullable(2)] object IDictionary<string, object>.this[string key] { [return: Nullable(2)] get; [param: Nullable(2)] set; } [Nullable(2)] object IReadOnlyDictionary<string, object>.this[string key] { [return: Nullable(2)] get; } public BalancerAttributes(); public bool TryGetValue<[Nullable(2)] TValue>(BalancerAttributesKey<TValue> key, out TValue value); public void Set<[Nullable(2)] TValue>(BalancerAttributesKey<TValue> key, TValue value); public bool Remove<TValue>(BalancerAttributesKey<TValue> key); } }