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