/// <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); } }
/// <summary> /// Handle communication message. /// </summary> /// <param name="msg"></param> protected override void HandleCommunicationMessage(CommMessage msg) { requestQueue.EnQ(msg); }
/// <summary> /// Enqueue request message. /// </summary> /// <param name="msg"></param> private void EnqueueMessageRequest(CommMessage msg) { requestQueue.EnQ(msg); }