Exemple #1
0
        /// <summary>
        /// Dispose this object.
        /// </summary>
        /// <param name="disposing">true if called from Dispose(), false if called from destructor</param>
        private void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                base.Dispose();
                if (disposing)
                {
                    m_ovpnService.Dispose();
                }

                m_ovpnService = null;
                disposed      = true;
            }
        }
Exemple #2
0
        /// <summary>
        /// Dispose this object.
        /// </summary>
        /// <param name="disposing">true if called from Dispose(), false if called from destructor</param>
        private void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (m_deleteLogFile)
                {
                    File.Delete(m_logFile);
                }

                base.Dispose();
                if (disposing)
                {
                    m_ovpnService.Dispose();
                }

                m_ovpnService = null;
                disposed      = true;
            }
        }