/// <summary> /// Initiates the connection with de server. /// </summary> /// <returns>True if success, false if fail.</returns> public bool Open() { bool lRslt = false; if (!this.IsOpen()) { // Open channel. mConnection = AbstractConnection.CreateServerConnection(this.ConnectionString); if (this.Connection != null) { lRslt = true; } this.Application = this.GetServerName(); this.VersionDTD = "CARE.Request v. 4.00"; } return lRslt; }
/// <summary> /// Closes the connection /// </summary> public void Close() { mConnection = null; this.ConnectionString = string.Empty; this.Application = string.Empty; this.Protocol = string.Empty; this.VersionDTD = string.Empty; }