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); } }
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); } }
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); }
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); }