Code extracted from https://web.archive.org/web/20141027055124/http://tech.pro/tutorial/855/wcf-tutorial-basic-interprocess-communication.
Original article has been lost to bit rot, but the Wayback Machine was linked to via this StackOverflow answer