public void MemberRemoved(MembershipEvent membershipEvent)
 {
     if (OnMemberRemoved != null)
     {
         OnMemberRemoved(membershipEvent);
     }
 }
 public void MemberRemoved(MembershipEvent membershipEvent)
 {
     if (OnMemberRemoved != null) OnMemberRemoved(membershipEvent);
 }
 public void MemberRemoved(MembershipEvent membershipEvent)
 {
     SetMembersFromCluster();
 }
 private void MemberRemoved(IMember member)
 {
     _members.Remove(member);
     ApplyMemberListChanges();
     var connection = _connectionManager.GetConnection(member.GetAddress());
     if (connection != null)
     {
         _connectionManager.DestroyConnection(connection);
     }
     var @event = new MembershipEvent(_client.GetCluster(), member, MembershipEvent.MemberRemoved, GetMembers());
     _clusterService.FireMembershipEvent(@event);
 }
 private void MemberAdded(IMember member)
 {
     _members.Add(member);
     ApplyMemberListChanges();
     var @event = new MembershipEvent(_client.GetCluster(), member, MembershipEvent.MemberAdded, GetMembers());
     _clusterService.FireMembershipEvent(@event);
 }
 internal virtual void FireMembershipEvent(MembershipEvent @event)
 {
     _client.GetClientExecutionService().Submit(
         (() =>
         {
             foreach (var listener in _listeners.Values)
             {
                 if (@event.GetEventType() == MembershipEvent.MemberAdded)
                 {
                     listener.MemberAdded(@event);
                 }
                 else
                 {
                     listener.MemberRemoved(@event);
                 }
             }
         }));
 }
 public void MemberRemoved(MembershipEvent membershipEvent)
 {
 }
 public void MemberAdded(MembershipEvent membershipEvent)
 {
 }