コード例 #1
0
        /// <inheritdoc/>
        public void PeerDiscoveredFrom(IPEndPoint endpoint, DateTime peerDiscoveredFrom)
        {
            PeerAddress peer = this.FindPeer(endpoint);

            if (peer == null)
            {
                return;
            }

            peer.SetDiscoveredFrom(peerDiscoveredFrom);
        }
コード例 #2
0
        /// <inheritdoc/>
        public void PeerDiscoveredFrom(IPEndPoint endpoint, DateTime peerDiscoveredFrom)
        {
            PeerAddress peer = this.FindPeer(endpoint);

            peer?.SetDiscoveredFrom(peerDiscoveredFrom);
        }