public CarControllerService(IMbedService portService, ICarControllerSettings settings) { Status = CarControllerStatus.Disconnected; _mbedService = portService; _mbedService.MbedStatusChanged += MbedServiceOnMbedStatusChanged; _settings = settings; if (_mbedService.Status == MbedStatus.Connected) OnCarControllerStatusChanged(CarControllerStatus.Connected); }
public CarControllerService(IMbedService portService, ICarControllerSettings settings) { Status = CarControllerStatus.Disconnected; _mbedService = portService; _mbedService.MbedStatusChanged += MbedServiceOnMbedStatusChanged; _settings = settings; if (_mbedService.Status == MbedStatus.Connected) { OnCarControllerStatusChanged(CarControllerStatus.Connected); } }