Class SsdpDeviceLocatorBase
Allows you to search the network for a particular device, device types, or UPnP service types. Also listenings for broadcast notifications of device availability and raises events to indicate changes in status.
Inherited Members
Namespace: Rssdp.Infrastructure
Assembly: cs.temp.dll.dll
Syntax
public abstract class SsdpDeviceLocatorBase : DisposableManagedObjectBase, IDisposable, ISsdpDeviceLocator
Constructors
Name | Description |
---|---|
SsdpDeviceLocatorBase(ISsdpCommunicationsServer) | Default constructor. |
Properties
Name | Description |
---|---|
IsSearching | Returns a boolean indicating whether or not a search is currently in progress. |
NotificationFilter | Sets or returns a string containing the filter for notifications. Notifications not matching the filter will not raise the DeviceAvailable or DeviceUnavailable events. |
Methods
Name | Description |
---|---|
Dispose(Boolean) | Disposes this object and all internal resources. Stops listening for all network messages. |
OnDeviceAvailable(DiscoveredSsdpDevice, Boolean) | Raises the DeviceAvailable event. |
OnDeviceUnavailable(DiscoveredSsdpDevice, Boolean) | Raises the DeviceUnavailable event. |
SearchAsync() | Performs a search for all devices using the default search timeout. |
SearchAsync(String) | Performs a search for the specified search target (criteria) and default search timeout. |
SearchAsync(String, TimeSpan) | Performs a search for the specified search target (criteria) and search timeout. |
SearchAsync(TimeSpan) | Performs a search for all devices using the specified search timeout. |
StartListeningForNotifications() | Starts listening for broadcast notifications of service availability. |
StopListeningForNotifications() | Stops listening for broadcast notifications of service availability. |
Events
Name | Description |
---|---|
DeviceAvailable | Raised for when This event may be raised from a background thread, if interacting with UI or other objects with specific thread affinity invoking to the relevant thread is required. |
DeviceUnavailable | Raised when a notification is received that indicates a device has shutdown or otherwise become unavailable. |