Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var    binding = new NetTcpBinding();
            string address = "net.tcp://localhost:9998/Duplex";
            var    handler = new CallBackHandler();

            using (var proxy = new DuplexServiceClient(handler, binding, address))
            {
                proxy.SignIn(100);
                Console.WriteLine("Signing in...");
                //while (true) ;
            }
        }
Ejemplo n.º 2
0
 public DuplexServiceClient(CallBackHandler handler, NetTcpBinding binding, string address)
     : base(new InstanceContext(handler), binding, address)
 {
     proxy = this.CreateChannel();
 }