示例#1
0
 /// <summary>
 /// Encapsulates a <see cref="Probe"/> and its children as a <see cref="ProbeOrphan"/>.
 /// </summary>
 /// <param name="value">The probe to encapsulate.</param>
 /// <param name="children">The children of the probe.</param>
 /// <returns>A <see cref="ProbeOrphan"/> encapsulating the specified <see cref="Probe"/> and children.</returns>
 public override PrtgOrphan Orphan(ITreeValue value, IEnumerable <PrtgOrphan> children) =>
 PrtgOrphan.Probe((Probe)value, children);
示例#2
0
 /// <summary>
 /// Creates a new <see cref="ProbeNode"/> from a probe and its children.
 /// </summary>
 /// <param name="probe">The probe this node represents.</param>
 /// <param name="children">The children of this node.</param>
 /// <returns>A node containing the specified probe and a copy of the children that point to this node as their parent.</returns>
 public static ProbeNode Probe(Probe probe, IEnumerable <PrtgNode> children) =>
 PrtgOrphan.Probe(probe, GetOrphans(children)).ToStandaloneNode <ProbeNode>();