Пример #1
0
        private static void SVInvoke()
        {
            //var sv = new ServiceReference1.Service1Client();
            //sv.DoWork();
            MyServiceClient client = new MyServiceClient();
            client.DoWork();
            client.Close();



            //MyService2Client client = new MyService2Client();
            //client.DoWork();

            //var channelFactory = new ChannelFactory<IMyService>("WSHttpBinding_IMyService");
            //var client1 = channelFactory.CreateChannel();
            //var os = proxy.MyTransparentProxy.Create<IMyService>(client1);
            //os.DoWork();
        }
Пример #2
0
        private static void SVInvoke()
        {
            //var sv = new ServiceReference1.Service1Client();
            //sv.DoWork();
            MyServiceClient client = new MyServiceClient();

            client.DoWork();
            client.Close();



            //MyService2Client client = new MyService2Client();
            //client.DoWork();

            //var channelFactory = new ChannelFactory<IMyService>("WSHttpBinding_IMyService");
            //var client1 = channelFactory.CreateChannel();
            //var os = proxy.MyTransparentProxy.Create<IMyService>(client1);
            //os.DoWork();
        }