Esempio n. 1
0
 /// <summary>
 /// Fire a Upper Threshold Reached notification
 /// Delegate the handler from client.
 /// </summary>
 /// <param name="value"></param>
 public void OnUpperThresholdReached(IScaledValue value)
 {
     if (Observer != null)
     {
         MeterEventArgs args = new MeterEventArgs(value, "Upper Threshold Reached!");
        // UpperThresholdReachedHandler handler = UpperThresholdReached;
         if (UpperThresholdReached != null)
         {
             UpperThresholdReached(value);
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Fire a value read notification
 /// Delegate the handler from client.
 /// </summary>
 /// <param name="value"></param>
 public void OnValueRead(IScaledValue value)
 {
     if(Observer != null)
     {
         MeterEventArgs args = new MeterEventArgs(value);
         if (ValueUpdated != null)
         {
             ValueUpdated(value);
         }
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Fire a Lower Threshold Reached notification
 /// Delegate the handler from client.
 /// </summary>
 /// <param name="value"></param>
 public void OnLowerThresholdReached(IScaledValue value)
 {
     if (Observer != null)
     {
         MeterEventArgs args = new MeterEventArgs(value, "Lower Threshold Reached!");
         if (LowerThresholdReached != null)
         {
             LowerThresholdReached(value);
         }
     }
 }