コード例 #1
0
        public void AddChild(HeartbeatInterface Child)
        {
            if (Children.Contains(Child))
            {
                throw new ArgumentException("Error trying to add a heartbeat child: this heartbeat-tracker already contains this instance.");
            }

            Children.Add(Child);
        }
コード例 #2
0
        public void RemoveChild(HeartbeatInterface Child)
        {
            if (!Children.Contains(Child))
            {
                throw new ArgumentException("Error trying to remove a heartbeat child: this heartbeat-tracker does not contain this instance.");
            }

            Children.Remove(Child);
        }
コード例 #3
0
 public bool ContainsChild(HeartbeatInterface Child)
 {
     return(Children.Contains(Child));
 }