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