/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { try { _client.Close(); } catch (Exception ex) { Log.Debug(ex.Message); _client.Abort(); } this._client = null; GC.SuppressFinalize(this); }
/// <summary> /// Initializes a new instance of the <see cref="ProspectServiceAgent" /> class. /// </summary> public ProspectServiceProxy() { _client = new ProspectServiceClient("BasicHttpBinding_IPROSPECTService"); }