18 lines
No EOL
586 B
C#
18 lines
No EOL
586 B
C#
using Microsoft.Extensions.Logging;
|
|
using Microsoft.Extensions.Options;
|
|
using NucuCar.Sensors.Abstractions;
|
|
|
|
namespace NucuCar.Sensors.Modules.Health
|
|
{
|
|
public class CpuTempWorker : SensorWorker
|
|
{
|
|
public CpuTempWorker(ILogger<CpuTempWorker> logger, Telemetry.Telemetry telemetry,
|
|
ISensor<CpuTempSensor> sensor, IOptions<CpuTempConfig> options)
|
|
{
|
|
Logger = logger;
|
|
MeasurementInterval = options.Value.MeasurementInterval;
|
|
TelemetryPublisher = telemetry.Publisher;
|
|
Sensor = sensor.Object;
|
|
}
|
|
}
|
|
} |