public void subscribe_to_vehicle_signal_transactions_rabbitmq()
        {
            // PingVehicleInQueue pushes signals data to the queue.
            var vehiclesSignalResult = _mqServiceBus.Subscribe <List <VehicleTransModel> >
                                           ("PingSignal_VehicleStatusTrans");

            Assert.IsNotNull(vehiclesSignalResult);
        }
 public IEnumerable <VehicleTransModel> GetConnectionStatusTransById(int status = -1)
 {
     try
     {
         _contextRepo.PingVehicleInQueue((VehicleStatusEnum)status);
         return(_mqServiceBus.Subscribe <List <VehicleTransModel> >("PingSignal_VehicleStatusTrans"));
     }
     catch (Exception ex)
     {
         _logger.Log(LogLevel.Error, ex.Message, "VehicleConnectionStatusServiceController");
         return(default(IEnumerable <VehicleTransModel>));
     }
 }
Ejemplo n.º 3
0
 public IEnumerable <VehicleTransModel> GetVehicleTransById(int id)
 {
     try
     {
         _vehicleContextRepo.PingVehiclesInQueue(id);
         return(_mqServiceBus.Subscribe <List <VehicleTransModel> >("Vehicle_VehicleStatusTrans"));
     }
     catch (Exception exp)
     {
         _logger.Log(LogLevel.Error, exp.Message, "VehicleServiceController");
         return(default(IEnumerable <VehicleTransModel>));
     }
 }