public VehicleService(ConnectionService cs, VehicleListener vl) { EnableVehicleSynchronisation = true;//hardcode config _connectionService = cs; cs.Connected += ucs_Connected; cs.Disconnected += ucs_Disconnected; _vehicleListener = vl; if (cs.IsConnected) { try { updateAvailableVehicles(); _vehicleListener.SubscribeVehicle(refreshVehicle); } catch (Exception err) { _logger.Error("Error occured.", err); } } }
public LicenseService(ConnectionService cs) { _connectionService = cs; }
public VehicleListener(ConnectionService cs) { _connectionService = cs; _eventSubscriptionWrapper = new EventSubscriptionWrapper(); }
public TelemetryListener(ConnectionService connect) { _connectionService = connect; _eventSubscriptionWrapper = new EventSubscriptionWrapper(); }