Exemple #1
0
 public void StartSSDPDiscovery()
 {
     _client = NetworkServices.CreateSSDPClient();
     _client.ShowDiagnostics = true;
     _client.NewDeviceFound += _client_NewDeviceFound;
     _client.SsdpQueryAsync(port: 1900);
 }
        public override void Start()
        {
            _logger.NotifyUserInfo("TCPIP Mgr", $"Started Watcher");

            _ssdpClient = NetworkServices.GetSSDPClient();
            _ssdpClient.ShowDiagnostics = true;
            _ssdpClient.NewDeviceFound += _ssdpClient_NewDeviceFound;
            _ssdpClient.SsdpQueryAsync(port: Constants.UPNPListenPort);
        }
        protected override void StartWatcher()
        {
            _logger.NotifyUserInfo("TCPIP Mgr", $"Started Watcher");

            _ssdpClient = NetworkServices.GetSSDPClient();
            _ssdpClient.ShowDiagnostics = true;
            _ssdpClient.NewDeviceFound += _ssdpClient_NewDeviceFound;
            _ssdpClient.SsdpQueryAsync(port: 1900);
        }