public bool ContainsServicesWithFilter(SsdpDevice device, string filter) { // TODO Implement this method. Not sure why needs to happen since there are now required services. return true; }
public void GetLocationData(string location, string uuid, string serviceFilter) { SsdpDevice device = null; try { device = new SsdpDevice(location, serviceFilter); } catch { } if (device != null) { if (true) { device.Uuid = uuid; var hasServices = ContainsServicesWithFilter(device, serviceFilter); if (hasServices) { ServiceDescription service; discoveredServices.TryGetValue(uuid, out service); if (service != null) { service.ServiceId = ServiceIdForFilter(serviceFilter); service.ServiceFilter = serviceFilter; service.FriendlyName = device.FriendlyName; service.ModelName = device.ModelName; service.ModelNumber = device.ModelNumber; service.ModelDescription = device.ModelDescription; service.Manufacturer = device.Manufacturer; service.ApplicationUrl = device.ApplicationUrl; service.ServiceList = device.ServiceList; service.ResponseHeaders = device.Headers; service.LocationXml = device.LocationXml; service.ServiceUri = device.ServiceUri; service.Port = device.Port; foundServices.TryAdd(uuid, service); NotifyListenersOfNewService(service); } } } } ServiceDescription srv; discoveredServices.TryRemove(uuid, out srv); }