static void Main(string[] args) { MessageGenerator mm = new MessageGenerator(); Message message = mm.MessageCreator("fromFoo", "toBar"); UtilityMethods.showMessage(message); Console.Write("\n\n"); }
//----< send closeReceiver message to local Receiver >--------------- public void shutDown() { Console.Write("\n local receiver shutting down"); Message message = new Message(); message.MessageContent = "closeReceiver"; message.ToURL = UtilityMethods.makeUrl(address, port); message.FromURL = message.ToURL; message.TimeSent = DateTime.Now; UtilityMethods.showMessage(message); ReceivingQ.sendMessage(message); Host.Close(); }