public bool ProcessWashPath(QueueData objQueueData) { if (objParkingControllerService == null) { objParkingControllerService = new ParkingControllerImp(); } if (objQueueControllerService == null) { objQueueControllerService = new QueueControllerImp(); } List <PathDetailsData> lstPathDetails = null; // QueueData objQueueData = new QueueData(); try { lstPathDetails = new List <PathDetailsData>(); do { lstPathDetails = FindCarWashingPathFirst(objQueueData.queuePkId); if (lstPathDetails == null) { Thread.Sleep(1500); } /**checking transaction deleted or not****/ objQueueControllerService.CancelIfRequested(objQueueData.queuePkId); /******/ } while (lstPathDetails == null); //objQueueData.queuePkId = washQId; objParkingControllerService.ExcecuteCommands(objQueueData); if (!IsSameFloorTravel(lstPathDetails)) { lstPathDetails = new List <PathDetailsData>(); do { lstPathDetails = FindCarWashingPathSecond(objQueueData.queuePkId); if (lstPathDetails == null) { Thread.Sleep(1500); } /**checking transaction deleted or not****/ objQueueControllerService.CancelIfRequested(objQueueData.queuePkId); /******/ } while (lstPathDetails == null); // objQueueData.queuePkId = washQId; objParkingControllerService.ExcecuteCommands(objQueueData); } objCarWashDaoService.updateAfterProcessing(objQueueData.queuePkId); } catch (OperationCanceledException errMsg) { Logger.WriteLogger(GlobalValues.PARKING_LOG, "Queue Id:" + objQueueData.queuePkId + " --TaskCanceledException 'ProcessWashPath':: " + errMsg.Message); } catch (Exception errMsg) { Logger.WriteLogger(GlobalValues.PARKING_LOG, "Queue Id:" + objQueueData.queuePkId + ":--Exception 'ProcessWashPath':: " + errMsg.Message); } finally { } return(true); }