/// <summary> /// Removes a PeerStatusListener from this peer. /// </summary> /// <param name="peerStatusListener">The listener that is no longer intereseted in the peer's status.</param> /// <returns>This class.</returns> public PeerBean RemovePeerStatusListener(IPeerStatusListener peerStatusListener) { lock (PeerStatusListeners) { PeerStatusListeners.Remove(peerStatusListener); } return(this); }
/// <summary> /// Adds a PeerStatusListener to this peer. /// </summary> /// <param name="peerStatusListener">The new listener that is interested in the peer's status.</param> /// <returns>This class.</returns> public PeerBean AddPeerStatusListener(IPeerStatusListener peerStatusListener) { lock (PeerStatusListeners) { PeerStatusListeners.Add(peerStatusListener); } return(this); }