public static async Task <string> GetMemberAsync(string name, string kind)
        {
            var members = await GetMembersAsync(kind);

            if (members == null || members.Length == 0)
            {
                return(null);
            }
            var hdv    = new Rendezvous(members);
            var member = hdv.GetNode(name);

            return(member);
        }
Beispiel #2
0
 public string GetPartition(string key) => _rdv.GetNode(key);