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); }
public void InvokeWcfAction() { WcfClientChannelFactory.InvokeWcfMethod <IService1>(t => { Console.WriteLine(t.GetData(2)); }); }