コード例 #1
0
 public void MemberRemoved(MembershipEvent membershipEvent)
 {
     if (OnMemberRemoved != null)
     {
         OnMemberRemoved(membershipEvent);
     }
 }
コード例 #2
0
 public void MemberRemoved(MembershipEvent membershipEvent)
 {
     if (OnMemberRemoved != null) OnMemberRemoved(membershipEvent);
 }
コード例 #3
0
 public void MemberRemoved(MembershipEvent membershipEvent)
 {
     SetMembersFromCluster();
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 private void MemberAdded(IMember member)
 {
     _members.Add(member);
     ApplyMemberListChanges();
     var @event = new MembershipEvent(_client.GetCluster(), member, MembershipEvent.MemberAdded, GetMembers());
     _clusterService.FireMembershipEvent(@event);
 }
コード例 #6
0
 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);
                 }
             }
         }));
 }
コード例 #7
0
 public void MemberRemoved(MembershipEvent membershipEvent)
 {
 }
コード例 #8
0
 public void MemberAdded(MembershipEvent membershipEvent)
 {
 }