Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            WCFProxyMSMQ objWCF = new WCFProxyMSMQ();
            IMsgService  client = objWCF.GetProxy <IMsgService>(1);

            client.WriteMsg(txtInfo.Text.Trim());
            MessageBox.Show("发送成功C");
        }