public int GetQueeuElementsCount(QUEUE_PATCHS pQueuePatch) { int wCount = 0; PelsoftComponent.MessageMover mover = new PelsoftComponent.MessageMover(); if (pQueuePatch == QUEUE_PATCHS.RUTA_COLA_ORIGEN) { wCount = mover.GetQueeuElementsCount(RUTA_COLA_ORIGEN); } else { wCount = mover.GetQueeuElementsCount(RUTA_COLA_DESTINO); } return(wCount); }
public void InsertIntoQueue(QUEUE_PATCHS pQueuePatch, string pMessage) { try { PelsoftComponent.MessageMover mover = new PelsoftComponent.MessageMover(); if (pQueuePatch == QUEUE_PATCHS.RUTA_COLA_ORIGEN) { mover.InsertElementIntoSourceQueue(RUTA_COLA_ORIGEN, pMessage); } else { mover.InsertElementIntoDestinationQueue(RUTA_COLA_DESTINO, pMessage); } } catch (Exception ex) { throw ex; } }
public string ExtractFromQueue(QUEUE_PATCHS pQueuePatch) { try { PelsoftComponent.MessageMover mover = new PelsoftComponent.MessageMover(); string strReturn = ""; if (pQueuePatch == QUEUE_PATCHS.RUTA_COLA_ORIGEN) { strReturn = mover.GetElementFromSource(RUTA_COLA_ORIGEN); } else { strReturn = mover.GetElementFromDestination(RUTA_COLA_DESTINO); } return(strReturn); } catch (Exception ex) { throw ex; } }
public int GetQueeuElementsCount(QUEUE_PATCHS pQueuePatch) { int wCount =0; PelsoftComponent.MessageMover mover = new PelsoftComponent.MessageMover(); if (pQueuePatch == QUEUE_PATCHS.RUTA_COLA_ORIGEN) { wCount = mover.GetQueeuElementsCount(RUTA_COLA_ORIGEN); } else { wCount = mover.GetQueeuElementsCount(RUTA_COLA_DESTINO); } return wCount; }
public void InsertIntoQueue(QUEUE_PATCHS pQueuePatch,string pMessage) { try { PelsoftComponent.MessageMover mover = new PelsoftComponent.MessageMover(); if (pQueuePatch == QUEUE_PATCHS.RUTA_COLA_ORIGEN) { mover.InsertElementIntoSourceQueue(RUTA_COLA_ORIGEN,pMessage); } else { mover.InsertElementIntoDestinationQueue(RUTA_COLA_DESTINO,pMessage); } } catch(Exception ex) { throw ex; } }
public string ExtractFromQueue(QUEUE_PATCHS pQueuePatch) { try { PelsoftComponent.MessageMover mover = new PelsoftComponent.MessageMover(); string strReturn=""; if (pQueuePatch == QUEUE_PATCHS.RUTA_COLA_ORIGEN) { strReturn = mover.GetElementFromSource(RUTA_COLA_ORIGEN); } else { strReturn = mover.GetElementFromDestination(RUTA_COLA_DESTINO); } return strReturn ; } catch(Exception ex) { throw ex; } }