Ejemplo n.º 1
0
        private string SendReplayJobRequestToMq(JobForMq job)
        {
            using (MessageQueue outQ = MqHelper.GetQ(OUTPUT_Q_PATH, QueueAccessMode.Send, null, null))
            {
                FJobRequest fJobRequest = FJobRequest.CreateReplayRequest(job.JobId);
                Message     m           = new Message(fJobRequest);
                outQ.Send(m);

                return(m.Id);
            }
        }
Ejemplo n.º 2
0
        private string SendJobToMq(FJobRequest fJobRequest)
        {
            using (MessageQueue outQ = MqHelper.GetQ(OUTPUT_Q_PATH, QueueAccessMode.Send, null, null))
            {
                Debug.WriteLine($"Sending request with JobId {fJobRequest.JobId} to output Q.");

                Message m = new Message(fJobRequest);
                outQ.Send(m);

                return(m.Id);
            }
        }
Ejemplo n.º 3
0
        private MessageQueue GetJobResponseQueue()
        {
            Type[] rTtypes = new Type[] { typeof(FCoordsResult) };

            MessagePropertyFilter mpf = new MessagePropertyFilter
            {
                Body = true,
                //Id = true,
                CorrelationId = true
            };

            MessageQueue result = MqHelper.GetQ(INPUT_COORDS_Q_PATH, QueueAccessMode.Receive, rTtypes, mpf);

            return(result);
        }
Ejemplo n.º 4
0
        private MessageQueue GetJobResponseQueue()
        {
            Type[] rTtypes = new Type[] { typeof(FJobResult) };

            MessagePropertyFilter mpf = new MessagePropertyFilter
            {
                Body = true,
                //Id = true,
                CorrelationId = true
            };

            MessageQueue result = MqHelper.GetQ(_inputQueuePath, QueueAccessMode.Receive, rTtypes, mpf);

            return(result);
        }