//TODO: account for Member.MemberId public void AddMember(Member member) { // Avoid adding the same member twice if (_members.Any(x => x.Address == member.Address)) { return; } _members = _members.Add(member); _rdv.UpdateMembers(_members); }
public void AddMember(Member member) { // Avoid adding the same member twice if (_members.Any(x => x.Address == member.Address)) { return; } if (member.Address.Equals(_cluster.System.Address)) { _me = member; } _members = _members.Add(member); _rdv.UpdateMembers(_members); }