Exemple #1
0
 public virtual void OnThresholdReached(ThreshholdReachedEventArgs args)
 {
     if (ThresholdReached != null)
     {
         ThresholdReached(this, args);
     }
 }
Exemple #2
0
        // This should listen for the alert events and do something.
        public void OnThresholdReached(Object source, ThreshholdReachedEventArgs args)
        {
            double value = args.Value;

            AlertsCount++;
            Console.WriteLine("onTrigger: ID={0}, value={1}, AlertCount={2}",
                              Id, value, AlertsCount);
        }