Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Press enter to continue once service is hosted.");
            Console.ReadLine();

            DuplexServiceCallBack callback        = new DuplexServiceCallBack();
            InstanceContext       instanceContext = new InstanceContext(callback);
            DuplexServiceClient   client          = new DuplexServiceClient(instanceContext);

            client.OpenSession();

            Console.WriteLine("Press <ESC> to stop the client.");
            Console.ReadLine();
        }