private static void Main(string[] args) { _encrypt = false; _client = new AsyncSocketClient { AllowReceivingFiles = true }; //Create the MessageContract implementation and add to the client _messageAContract = new MessageA("MessageAHeader"); _client.AddMessageContract(_messageAContract); //Bind MessageContract Event _messageAContract.OnMessageReceived += MessageAContractOnOnMessageReceived; BindEvents(); _client.StartClient("127.0.0.1", 13000); while (true) { Options(); WriteLine("Press any key to continue..."); System.Console.Read(); System.Console.Clear(); } }