namespace Rssdp
{
///
/// Represents a device that is a descendant of a instance.
///
public class SsdpEmbeddedDevice : SsdpDevice
{
private SsdpRootDevice _RootDevice;
///
/// Default constructor.
///
public SsdpEmbeddedDevice()
{
}
///
/// Returns the that is this device's first ancestor. If this device is itself an , then returns a reference to itself.
///
public SsdpRootDevice RootDevice
{
get
{
return _RootDevice;
}
internal set
{
_RootDevice = value;
lock (this.Devices)
{
foreach (var embeddedDevice in this.Devices)
{
((SsdpEmbeddedDevice)embeddedDevice).RootDevice = _RootDevice;
}
}
}
}
}
}