@Yortw currently, the way it works is ==:
|
|| device.NotificationType == this.NotificationFilter; |
It would be nice if it could be a regex and do things like (based on the example in the NotificationFilter property docs):
deviceLocator.NotificationFilter = "urn:schemas-upnp-org:device:(WANDevice|WANDevice2):1";
Although the most powerful solution would be for NotificationFilter to have the signature Func<DiscoveredSsdpDevice, bool> so that everyone can decide whether to use a regex or the condition they want with all the device information. The problem is that it is a breaking change, easy to fix but still a breaking change.
@Yortw currently, the way it works is
==:RSSDP/src/Main/Lib/SsdpDeviceLocatorBase.cs
Line 449 in d4bbdfd
It would be nice if it could be a regex and do things like (based on the example in the NotificationFilter property docs):
Although the most powerful solution would be for
NotificationFilterto have the signatureFunc<DiscoveredSsdpDevice, bool>so that everyone can decide whether to use a regex or the condition they want with all the device information. The problem is that it is a breaking change, easy to fix but still a breaking change.