FireMembershipEvent() private method

private FireMembershipEvent ( Hazelcast.Core.MembershipEvent @event ) : void
@event Hazelcast.Core.MembershipEvent
return void
コード例 #1
0
 private void FireMembershipEvent(IList <MembershipEvent> events)
 {
     foreach (var @event in events)
     {
         _clusterService.FireMembershipEvent(@event);
     }
 }
コード例 #2
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);
        }