public IList <VehicleConnectionStatusViewModel> GetAllVehiclesConnectionStatus() { var statusList = _connectionStatusService.GetVehiclesConnectionStatus(); var statusViewModelList = _mapper.Map <IList <VehicleConnectionStatusViewModel> >(statusList); return(statusViewModelList); }
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); }