Exemplo 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);
         }
     }
 }
Exemplo 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);
         }
     }
 }
Exemplo 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);
         }
     }
 }