public override void Accept(PrtgNodeVisitor visitor) { foreach (var item in Group) { item.Accept(visitor); } }
public override void Accept(PrtgNodeVisitor visitor) => visitor.VisitSensor(this);
public override T Accept <T>(PrtgNodeVisitor <T> visitor) => visitor.VisitSensor(this);
public override void Accept(PrtgNodeVisitor visitor) => visitor.VisitProbe(this);
public override T Accept <T>(PrtgNodeVisitor <T> visitor) => visitor.VisitProbe(this);
public override void Accept(PrtgNodeVisitor visitor) => visitor.VisitGroup(this);
public override T Accept <T>(PrtgNodeVisitor <T> visitor) => visitor.VisitGroup(this);
/// <summary> /// Dispatches to the specific visit method for this node.<para/> /// For example, a <see cref="SensorNode"/> will call the <see cref="PrtgNodeVisitor.VisitSensor(SensorNode)"/> method. /// </summary> /// <param name="visitor">The visitor to visit this node with.</param> public abstract void Accept(PrtgNodeVisitor visitor);
public override T Accept <T>(PrtgNodeVisitor <T> visitor) { throw new NotSupportedException($"{nameof(PrtgNodeGrouping)} cannot be used with visitors of type {nameof(PrtgNodeVisitor<T>)}."); }
/// <summary> /// Dispatches to the specific visit method for this node type and returns a value of a type specified by the <paramref name="visitor"/>.<para/> /// For example, a <see cref="SensorNode"/> will call the <see cref="PrtgNodeVisitor{TResult}.VisitSensor(SensorNode)"/> method. /// </summary> /// <typeparam name="T">The type of value to return.</typeparam> /// <param name="visitor">The visitor to visit this node with.</param> /// <returns>The result of visiting this node.</returns> public abstract T Accept <T>(PrtgNodeVisitor <T> visitor);
public override void Accept(PrtgNodeVisitor visitor) => visitor.VisitTrigger(this);
public override T Accept <T>(PrtgNodeVisitor <T> visitor) => visitor.VisitTrigger(this);
public override void Accept(PrtgNodeVisitor visitor) => visitor.VisitCollection(this);
public override T Accept <T>(PrtgNodeVisitor <T> visitor) => visitor.VisitCollection(this);