Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Service1Client service = new Service1Client();

            WcfService.CompositeType type = new WcfService.CompositeType();
            type.BoolValue   = true;
            type.StringValue = "MaTengfei";
            Label label1 = new Label();

            label1.Text = service.GetDataUsingDataContract(type).StringValue;
            this.Controls.Add(label1);
            label1.Location = new Point(20, 20);
        }
Exemplo n.º 2
0
 public WcfService.CompositeType GetDataUsingDataContract(WcfService.CompositeType composite)
 {
     return(base.Channel.GetDataUsingDataContract(composite));
 }
 public System.Threading.Tasks.Task <WcfService.CompositeType> GetDataUsingDataContractAsync(WcfService.CompositeType composite)
 {
     return(base.Channel.GetDataUsingDataContractAsync(composite));
 }