Method AddDevice
AddDevice(SsdpRootDevice)
Adds a device (and it's children) to the list of devices being published by this server, making them discoverable to SSDP clients.
Declaration
public void AddDevice(SsdpRootDevice device)
Parameters
Type | Name | Description |
---|---|---|
SsdpRootDevice | device | The SsdpDevice instance to add. |
Implements
Remarks
Adding a device causes "alive" notification messages to be sent immediately, or very soon after. Ensure your device/description service is running before adding the device object here.
Devices added here with a non-zero cache life time will also have notifications broadcast periodically.
This method ignores duplicate device adds (if the same device instance is added multiple times, the second and subsequent add calls do nothing).
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if the |
System.InvalidOperationException | Thrown if the |