Example #1
0
        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);
        }
Example #2
0
 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;
     }
 }
Example #3
0
        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;
            }
        }
Example #4
0
		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;
		}
Example #5
0
		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;
			}

		}
Example #6
0
		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;
			}
		}