Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
 public LicenseService(ConnectionService cs)
 {
     _connectionService = cs;
 }
Exemple #3
0
 public VehicleListener(ConnectionService cs)
 {
     _connectionService        = cs;
     _eventSubscriptionWrapper = new EventSubscriptionWrapper();
 }
Exemple #4
0
 public TelemetryListener(ConnectionService connect)
 {
     _connectionService        = connect;
     _eventSubscriptionWrapper = new EventSubscriptionWrapper();
 }