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); }
public SimpleMemberStrategy() { _members = new List <MemberStatus>(); _rdv = new Rendezvous(this); _rr = new RoundRobin(this); }
public LocalAffinityStrategy(Cluster cluster) { _cluster = cluster; _rdv = new Rendezvous(); _rr = new RoundRobinMemberSelector(this); }
public SimpleMemberStrategy() { _rdv = new Rendezvous(); _rr = new RoundRobinMemberSelector(this); }