示例#1
0
        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);
        }
示例#2
0
 public string GetPartition(string key) => _rdv.GetNode(key);