/// <summary>
        /// Initializes a new instance of <see cref="XBeeNetwork"/>.
        /// </summary>
        /// <param name="device">A local XBee device to get the network from.</param>
        public XBeeNetwork(XBeeDevice device)
        {
            if (device == null)
                throw new ArgumentNullException("Local XBee device cannot be null.");

            localDevice = device;
            remotesBy64BitAddr = new ConcurrentDictionary<XBee64BitAddress, RemoteXBeeDevice>();
            remotesBy16BitAddr = new ConcurrentDictionary<XBee16BitAddress, RemoteXBeeDevice>();
            nodeDiscovery = new NodeDiscovery(localDevice);

            logger = LogManager.GetLogger(this.GetType());
        }
        /// <summary>
        /// Initializes a new instance of <see cref="XBeeNetwork"/>.
        /// </summary>
        /// <param name="device">A local XBee device to get the network from.</param>
        public XBeeNetwork(XBeeDevice device)
        {
            if (device == null)
            {
                throw new ArgumentNullException("Local XBee device cannot be null.");
            }

            localDevice        = device;
            remotesBy64BitAddr = new ConcurrentDictionary <XBee64BitAddress, RemoteXBeeDevice>();
            remotesBy16BitAddr = new ConcurrentDictionary <XBee16BitAddress, RemoteXBeeDevice>();
            nodeDiscovery      = new NodeDiscovery(localDevice);

            logger = LogManager.GetLogger(this.GetType());
        }
 public CustomPacketReceiveListener(NodeDiscovery node, IList <IDiscoveryListener> listeners, string id)
 {
     _node      = node;
     _id        = id;
     _listeners = listeners;
 }
			public CustomPacketReceiveListener(NodeDiscovery node, IList<IDiscoveryListener> listeners, string id)
			{
				_node = node;
				_id = id;
				_listeners = listeners;
			}