/// <summary> /// Visits the children of a <see cref="ProbeNode"/> and replaces the node if any of its children are modified. /// </summary> /// <param name="node">The node to visit.</param> /// <returns>If any children were modified, a new node with the modified children. Otherwise, the original node.</returns> protected internal override PrtgNode VisitProbe(ProbeNode node) { return(node.WithChildren(VisitList(node.Children))); }
/// <summary> /// Visits a single <see cref="ProbeNode"/> and produces a value of type <typeparamref name="TResult"/>. /// </summary> /// <param name="node">The node to visit.</param> /// <returns>The result of visitng the node.</returns> protected internal override TResult VisitProbe(ProbeNode node) => DefaultVisit(node);
/// <summary> /// Visits a single <see cref="ProbeNode"/>. /// </summary> /// <param name="node">The node to visit.</param> protected internal abstract void VisitProbe(ProbeNode node);