示例#1
0
 /// <summary>
 /// Visits the children of a <see cref="SensorNode"/> 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 VisitSensor(SensorNode node)
 {
     return(node.WithChildren(VisitList(node.Children)));
 }
示例#2
0
 /// <summary>
 /// Visits a single <see cref="SensorNode"/> 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 VisitSensor(SensorNode node) => DefaultVisit(node);
示例#3
0
 /// <summary>
 /// Visits a single <see cref="SensorNode"/>.
 /// </summary>
 /// <param name="node">The node to visit.</param>
 protected internal abstract void VisitSensor(SensorNode node);