/// <summary> /// Encapsulates a <see cref="Sensor"/> and its children as a <see cref="SensorOrphan"/>. /// </summary> /// <param name="value">The sensor to encapsulate.</param> /// <param name="children">The children of the sensor.</param> /// <returns>A <see cref="SensorOrphan"/> encapsulating the specified <see cref="Sensor"/> and children.</returns> public override PrtgOrphan Orphan(ITreeValue value, IEnumerable <PrtgOrphan> children) => PrtgOrphan.Sensor((Sensor)value, children);
/// <summary> /// Creates a new <see cref="SensorNode"/> from a sensor and its children. /// </summary> /// <param name="sensor">The sensor this node represents.</param> /// <param name="children">The children of this node.</param> /// <returns>A node containing the specified sensor and a copy of the children that point to this node as their parent.</returns> public static SensorNode Sensor(Sensor sensor, IEnumerable <PrtgNode> children) => PrtgOrphan.Sensor(sensor, GetOrphans(children)).ToStandaloneNode <SensorNode>();