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