Esempio n. 1
0
        /// <summary>
        ///   Creates a new instance of the <see cref="ServiceDiscovery"/> class.
        /// </summary>
        public ServiceDiscovery()
            : this(new MulticastService())
        {
            ownsMdns = true;

            // Auto start.
            Mdns.Start();
        }
        /// <summary>
        ///   Creates a new instance of the <see cref="ServiceDiscovery"/> class.
        /// </summary>
        public ServiceDiscovery(ILogger logger)
            : this(logger, new MulticastService())
        {
            _ownsMdns = true;

            // Auto start.
            Mdns.Start();
        }