public override void Accept(PrtgNodeVisitor visitor)
 {
     foreach (var item in Group)
     {
         item.Accept(visitor);
     }
 }
Exemple #2
0
 public override void Accept(PrtgNodeVisitor visitor) => visitor.VisitSensor(this);
Exemple #3
0
 public override T Accept <T>(PrtgNodeVisitor <T> visitor) => visitor.VisitSensor(this);
Exemple #4
0
 public override void Accept(PrtgNodeVisitor visitor) => visitor.VisitProbe(this);
Exemple #5
0
 public override T Accept <T>(PrtgNodeVisitor <T> visitor) => visitor.VisitProbe(this);
Exemple #6
0
 public override void Accept(PrtgNodeVisitor visitor) => visitor.VisitGroup(this);
Exemple #7
0
 public override T Accept <T>(PrtgNodeVisitor <T> visitor) => visitor.VisitGroup(this);
Exemple #8
0
 /// <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>)}.");
 }
Exemple #10
0
 /// <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);
Exemple #11
0
 public override void Accept(PrtgNodeVisitor visitor) => visitor.VisitTrigger(this);
Exemple #12
0
 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);