public DetectSensorCommand(ILogger <DetectSensorCommand> logger, IDeviceCommunicationService deviceService, IDeviceLockManager deviceLockManager, DatabaseContext databaseContext, LogEntryHandler logEntryHandler, IJobCancellationToken cancellationToken) { this.logger = logger; this.deviceLockManager = deviceLockManager; this.databaseContext = databaseContext; this.logEntryHandler = logEntryHandler; this.deviceService = deviceService; this.cancellationToken = cancellationToken.ShutdownToken; }
public ReadBatteryAndFirmwareCommand(ILogger <ReadBatteryAndFirmwareCommand> logger, IDeviceLockManager deviceLockManager, DatabaseContext databaseContext, IDeviceCommunicationService deviceService, IJobManager jobManager, IJobCancellationToken cancellationToken) { this.logger = logger; this.deviceLockManager = deviceLockManager; this.databaseContext = databaseContext; this.deviceService = deviceService; this.jobManager = jobManager; this.cancellationToken = cancellationToken.ShutdownToken; }
public DetectDeviceCommand(ILogger <DetectDeviceCommand> logger, IDeviceLockManager deviceLockManager, DatabaseContext databaseContext, IDeviceCommunicationService deviceService, IOptions <JsonOptions> options, LogEntryHandler logEntryHandler, IJobCancellationToken cancellationToken) { this.logger = logger; this.databaseContext = databaseContext; this.deviceService = deviceService; this.logEntryHandler = logEntryHandler; this.deviceLockManager = deviceLockManager; this.jsonSerializerOptions = options.Value.JsonSerializerOptions; this.cancellationToken = cancellationToken.ShutdownToken; }