Exemplo n.º 1
0
 public void Dispose()
 {
     lock (this)
     {
         if (client != null)
         {
             client.Close();
             client = null;
         }
     }
 }
Exemplo n.º 2
0
 public Client()
 {
     Util.WriteLineWithThreadId("Client: Constructing Service proxy");
     try
     {
         client = new WcfServiceReference.Service1Client();
     }
     catch (Exception e)
     {
         Util.WriteLineWithThreadId(e.Message);
     }
 }