public static void Main(string[] args) { Console.WriteLine("Testing Mother builder process."); string motherBuilderPort = "8100"; string motherBuilderBaseAddr = "http://localhost"; MotherBuilderProcess process = new MotherBuilderProcess(motherBuilderBaseAddr, motherBuilderPort, /* Repository URL and port. */ "http://localhost", "8800"); process.StartMessageListener(); Console.WriteLine("Mother builder process hosted."); CommMessage msg = new CommMessage(CommMessage.MessageType.Connect); msg.Arguments.Add("ARG1", "VAL1"); CommunicationObject obj = new CommunicationObject("http://localhost", 8020, Identity.Client); msg.To = motherBuilderBaseAddr + ":" + motherBuilderPort; obj.PostMessage(msg); Console.WriteLine("Posting message to mother builder."); }
/// <summary> /// Main method. /// </summary> /// <param name="args"></param> public static void Main(string[] args) { var obj = new MotherBuilderProcess(); obj.StartMessageListener(); }