Beispiel #1
0
        public DiscoveryManager(UdpManager udpManager)
        {
            _udpManager = udpManager;
            DeviceInfos = new Dictionary <string, DeviceInfo>();

            _serviceBrowser = new ServiceBrowser();
            _serviceBrowser.ServiceAdded   += OnServiceAdded;
            _serviceBrowser.ServiceRemoved += OnServiceRemoved;
            _serviceBrowser.ServiceChanged += OnServiceChanged;

            Debug.WriteLine($"Browsing for type: {ServiceType}");
            _serviceBrowser.StartBrowse(ServiceType);
        }
Beispiel #2
0
 public DescriptorManager(UdpManager udpManager)
 {
     _udpManager        = udpManager;
     _subscribedDevices = new Dictionary <string, SubscribedDevice>();
 }