Event DeviceUnavailable
Raised when a notification is received that indicates a device has shutdown or otherwise become unavailable.
Implements
Namespace: Rssdp.Infrastructure
Assembly: cs.temp.dll.dll
Syntax
public event EventHandler<DeviceUnavailableEventArgs> DeviceUnavailable
Returns
Type | Description |
---|---|
System.EventHandler<DeviceUnavailableEventArgs> |
Remarks
Devices should broadcast these types of notifications, but not all devices do and sometimes (in the event of power loss for example) it might not be possible for a device to do so. You should also implement error handling when trying to contact a device, even if RSSDP is reporting that device as available.
This event is only raised if the notification type matches the NotificationFilter property. A null or empty string for the NotificationFilter will be treated as no filter and raise the event for all notifications.
The DiscoveredDevice property may contain either a fully complete DiscoveredSsdpDevice instance, or one containing just a USN and NotificationType property. Full information is available if the device was previously discovered and cached, but only partial information if a byebye notification was received for a previously unseen or expired device.
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.