using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WcfSampleServer;

namespace WcfSampleClient
{
    class Program
    {
        static void Main(string[] args)
        {
            var channelFactory = new System.ServiceModel.ChannelFactory<IHelloWorldService>(
                    new System.ServiceModel.NetNamedPipeBinding(),
                    new System.ServiceModel.EndpointAddress("net.pipe://localhost/HelloWorld"));
            channelFactory.Open();
            IHelloWorldService proxy = channelFactory.CreateChannel();
            proxy.Hello();
            channelFactory.Close();
        }
    }
}