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