Exemplo n.º 1
0
 static void Main(string[] args)
 {
     var pro = new ChannelFactory<WCFServer.IData>("WcfDemo").CreateChannel();
        Console.WriteLine(pro.SayHello("chen han"));
        ((IChannel)pro).Close();
     Console.ReadKey();
 }