/// <summary> /// Send message to agents /// </summary> /// <param name="target">Receiver agent</param> /// <param name="msgText">Message text in string</param> /// <param name="info">Additional parameter</param> public void SendMessage(Type target, string msgText, params object[] info) { AgentMessage msg; msg = new AgentMessage(); msg.target = target; msg.msgText = msgText; msg.info = info; // Put message to message queue _messageQueue.Enqueue(msg); }