using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using NucuCar.Sensors.Abstractions; using NucuCar.Telemetry.Abstractions; namespace NucuCar.Sensors.Modules.Heartbeat { public class HeartbeatWorker : SensorWorker { public HeartbeatWorker(ILogger logger, ITelemetryPublisher telemetryPublisherProxy, ISensor sensor, IOptions options) { Logger = logger; MeasurementInterval = options.Value.MeasurementInterval; TelemetryPublisher = telemetryPublisherProxy; Sensor = sensor.Object; } } }