コード例 #1
0
 /// <summary>
 /// Handle communication message according to command.
 /// </summary>
 /// <param name="msg"></param>
 protected override void HandleCommunicationMessage(CommMessage msg)
 {
     if (msg.Command == CommCommands.STARTCHILDPROCESS)
     {
         this.CreateProcesses(msg.Arguments);
     }
     else if (msg.Command == CommCommands.STOPCHILDPROCESS)
     {
         this.QuitChildProcesses();
     }
     else if (msg.Command == CommCommands.BUILDREQUEST)
     {
         EnqueueMessageRequest(msg);
     }
     else if (msg.Command == CommCommands.READY)
     {
         readyQueue.EnQ(msg.From);
     }
 }
コード例 #2
0
 /// <summary>
 /// Handle communication message.
 /// </summary>
 /// <param name="msg"></param>
 protected override void HandleCommunicationMessage(CommMessage msg)
 {
     requestQueue.EnQ(msg);
 }
コード例 #3
0
 /// <summary>
 /// Enqueue request message.
 /// </summary>
 /// <param name="msg"></param>
 private void EnqueueMessageRequest(CommMessage msg)
 {
     requestQueue.EnQ(msg);
 }