With the current configuration file in place, the actual programming logic required to complete
the host is painfully simple. When our executable starts up, we will create an instance of the
ServiceHost type. At runtime, this object will automatically read the data within the scope of the
ing, and contract, and create the necessary plumbing:
static void Main(string[] args)
{
Console.WriteLine("***** Console Based WCF Host *****");
I N T R O D U C I N G W I N D O W S C O M M U N I C AT I O N F O U N D AT I O N
8849CH25.qxd 10/16/07 10:51 AM Page 889