private void OnServerMessage(NamedPipeConnection<MyMessage, MyMessage> connection, MyMessage message) { Console.WriteLine("Server says: {0}", message); }
private void OnClientMessage(NamedPipeConnection<MyMessage, MyMessage> connection, MyMessage message) { Console.WriteLine("Client {0} says: {1}", connection.Id, message); }