Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     using (localhost.MessagingServiceClient m_proxy = new localhost.MessagingServiceClient())
     {
         m_proxy.SendMessage(string.Format("Hello from {0}", this.Text));
     }
 }
Example #2
0
 private void CallService()
 {
     lock (m_proxy)
     {
         try
         {
             m_proxy.SendMessage(String.Format("Hello from {0}", this.Text));
         }
         catch {}
     }
 }
Example #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     m_proxy.SendMessage(string.Format("Hello from {0}", this.Text));
 }