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

            var callback = new MyServiceCallback();
            var instanceContext = new InstanceContext(callback);
            var client = new MyServiceReference.MyServiceClient(instanceContext);
            client.OpenSession();

            Console.ReadLine();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Press enter to continue once service is hosted.");
            Console.ReadLine();

            var callback        = new MyServiceCallback();
            var instanceContext = new InstanceContext(callback);
            var client          = new MyServiceReference.MyServiceClient(instanceContext);

            client.OpenSession();

            Console.ReadLine();
        }