/// <summary> /// Releases unmanaged and - optionally - managed resources /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged ResourceMessages.</param> protected override void Dispose(bool disposing) { if (this._netConfSession != null) { this._netConfSession.Dispose(); this._netConfSession = null; } base.Dispose(disposing); if (this._disposeConnectionInfo) ((IDisposable)this.ConnectionInfo).Dispose(); }
/// <summary> /// Called when client is connected to the server. /// </summary> protected override void OnConnected() { base.OnConnected(); this._netConfSession = new NetConfSession(this.Session, this.OperationTimeout); this._netConfSession.Connect(); }
/// <summary> /// Releases unmanaged and - optionally - managed resources /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged ResourceMessages.</param> protected override void Dispose(bool disposing) { if (this._netConfSession != null) { this._netConfSession.Dispose(); this._netConfSession = null; } base.Dispose(disposing); }