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;
[System.Runtime.CompilerServices.Nullable(2)]
object IDictionary<string, object>.this[string key] {
[return: System.Runtime.CompilerServices.Nullable(2)]
get;
[param: System.Runtime.CompilerServices.Nullable(2)]
set;
}
[System.Runtime.CompilerServices.Nullable(2)]
object IReadOnlyDictionary<string, object>.this[string key] {
[return: System.Runtime.CompilerServices.Nullable(2)]
get;
}
public BalancerAttributes();
public bool TryGetValue<[System.Runtime.CompilerServices.Nullable(2)] TValue>(BalancerAttributesKey<TValue> key, out TValue value);
public void Set<[System.Runtime.CompilerServices.Nullable(2)] TValue>(BalancerAttributesKey<TValue> key, TValue value);
public bool Remove<TValue>(BalancerAttributesKey<TValue> key);
}
}