public DeviceReconnectManager(ProximityMonitorManager proximityMonitorManager, BleDeviceManager deviceManager, ConnectionFlowProcessor connectionFlowProcessor, ILog log) : base(nameof(DeviceReconnectManager), log) { _proximityMonitorManager = proximityMonitorManager; _deviceManager = deviceManager; _connectionFlowProcessor = connectionFlowProcessor; _connectionFlowProcessor.DeviceFinilizingMainFlow += ConnectionFlowProcessor_DeviceFinalizingMainFlow; _deviceManager.DeviceRemoved += DeviceManager_DeviceRemoved; _proximityMonitorManager.DeviceConnectionLost += ProximityMonitorManager_DeviceConnectionLost; _proximityMonitorManager.DeviceProximityTimeout += ProximityMonitorManager_DeviceProximityTimeout; _proximityMonitorManager.DeviceBelowLockForToLong += ProximityMonitorManager_DeviceBelowLockForToLong; _proximityMonitorManager.DeviceBelowUnlockWarning += ProximityMonitorManager_DeviceBelowUnlockWarning; _proximityMonitorManager.DeviceProximityNormalized += ProximityMonitorManager_DeviceProximityNormalized; }
public WorkstationLockProcessor( ConnectionFlowProcessor flowProcessor, ProximityMonitorManager proximityMonitorManager, BleDeviceManager deviceManager, IWorkstationLocker workstationLocker, DeviceReconnectManager deviceReconnectManager, ILog log) : base(nameof(WorkstationLockProcessor), log) { _flowProcessor = flowProcessor; _proximityMonitorManager = proximityMonitorManager; _deviceManager = deviceManager; _workstationLocker = workstationLocker; _deviceReconnectManager = deviceReconnectManager; _flowProcessor.DeviceFinilizingMainFlow += FlowProcessor_DeviceFinalizingMainFlow; _proximityMonitorManager.DeviceBelowLockForToLong += ProximityMonitorManager_DeviceBelowLockForToLong; _proximityMonitorManager.DeviceProximityTimeout += ProximityMonitorManager_DeviceProximityTimeout; _proximityMonitorManager.DeviceConnectionLost += ProximityMonitorManager_DeviceConnectionLost; _deviceReconnectManager.DeviceDisconnected += DeviceReconnectManager_DeviceDisconnected; }