Esempio n. 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);
        }
Esempio n. 2
0
 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);
 }