NucuCar/NucuCar.Sensors/Health/CpuTempWorker.cs

16 lines
No EOL
457 B
C#

using Microsoft.Extensions.Logging;
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;
}
}
}