Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #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);
        }
Пример #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);
        }