Skip to content

NotificationFilter with wildcard or regex #128

Description

@bdovaz

@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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions