NucuCar/NucuCar.Sensors/Health/CpuTempWorker.cs

17 lines
493 B
C#
Raw Normal View History

using Microsoft.Extensions.Logging;
2020-08-01 15:07:13 +00:00
using NucuCar.Sensors.Abstractions;
using NucuCar.Telemetry;
namespace NucuCar.Sensors.Health
{
public class CpuTempWorker : SensorWorker
{
public CpuTempWorker(ILogger<CpuTempWorker> logger, Telemetry.Telemetry telemetry, ISensor<CpuTempSensor> sensor)
{
Logger = logger;
MeasurementInterval = 3000;
TelemetryPublisher = telemetry.Publisher;
Sensor = sensor.Object;
}
}
}