示例#1
0
        /// <summary>
        /// Standard Constructor
        /// </summary>
        /// <param name="directoryName"></param>
        public OracleHome(string directoryName)
        {
            ClientPath = directoryName ?? throw new ArgumentNullException(nameof(directoryName));

            string netWork = Path.Combine(ClientPath, "network", "admin");

            m_TnsNames = new Lazy <TnsNames>(() => TnsNames.Load(Path.Combine(netWork, "tnsnames.ora")));

            m_Ldap   = new Lazy <IReadOnlyDictionary <string, string> >(() => ReadAsDictionary(Path.Combine(netWork, "ldap.ora")));
            m_SqlNet = new Lazy <IReadOnlyDictionary <string, string> >(() => ReadAsDictionary(Path.Combine(netWork, "sqlnet.ora")));
        }