コード例 #1
0
 protected override void OnMonitoringTimerTick(object state)
 {
     try
     {
         InternalBar.AddValue((int)InternalCounter.NextValue());
     }
     catch (Exception e)
     { }
 }
コード例 #2
0
 protected override void OnMonitoringTimerTick(object state)
 {
     try
     {
         InternalBar.AddValue(Math.Round(InternalCounter.NextValue() / Environment.ProcessorCount, 2, MidpointRounding.AwayFromZero));
     }
     catch (Exception e)
     { }
 }
コード例 #3
0
 protected override void OnMonitoringTimerTick(object state)
 {
     try
     {
         InternalBar?.AddValue(Math.Round(InternalCounter?.NextValue() ?? 0.0, 2, MidpointRounding.AwayFromZero));
     }
     catch (Exception e)
     { }
 }
コード例 #4
0
 public override CommonSensorValue GetLastValue()
 {
     return(InternalBar.GetLastValue());
 }
コード例 #5
0
 public override void Dispose()
 {
     _monitoringTimer?.Dispose();
     InternalCounter?.Dispose();
     InternalBar?.Dispose();
 }
コード例 #6
0
 public override UnitedSensorValue GetLastValue()
 {
     return(InternalBar.GetLastValue());
 }