Пример #1
0
        public void InvokeWcfFunction()
        {
            var result = WcfClientChannelFactory.InvokeWcfMethod <IService1, CompositeType>(t => {
                CompositeType ct = new CompositeType();
                ct.BoolValue     = true;
                ct.StringValue   = "Hello World";
                return(t.GetDataUsingDataContract(ct));
            });

            Console.WriteLine(result.StringValue);
        }
Пример #2
0
 public void InvokeWcfAction()
 {
     WcfClientChannelFactory.InvokeWcfMethod <IService1>(t => {
         Console.WriteLine(t.GetData(2));
     });
 }