コード例 #1
0
        static void Main(string[] args)
        {
            var callback = new InstanceContext(new ClientCallback());
            var client   = new DuplexServiceClient(callback);

            client.Open();
            client.Register();
            Console.WriteLine("Press a key to exit");
            Console.ReadKey();
            client.Close();
        }