NucuCar/NucuCar.Sensors/Modules/Health/CpuTempWorker.cs

16 lines
No EOL
476 B
C#

using Microsoft.Extensions.Logging;
using NucuCar.Sensors.Abstractions;
namespace NucuCar.Sensors.Modules.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;
}
}
}