public IList <VehicleConnectionStatusViewModel> GetAllVehiclesConnectionStatus()
        {
            var statusList          = _connectionStatusService.GetVehiclesConnectionStatus();
            var statusViewModelList = _mapper.Map <IList <VehicleConnectionStatusViewModel> >(statusList);

            return(statusViewModelList);
        }
Exemplo n.º 2
0
        public Task Handle(VehiclePingedEvent notification, CancellationToken cancellationToken)
        {
            // Send some notification
            // get all data from azure  table and proses the status logic then push all cars data with status via signalR
            _vehiclesConnectionStatusService.GetVehiclesConnectionStatus(cancellationToken);

            return(Task.CompletedTask);
        }