Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new instance of the <see cref="PropertyReaderFactory"/>
        /// </summary>
        /// <param name="loadConfig">Indicates whether to load any tokens in the AppDomain's configuration file</param>
        /// <param name="loadInternalTokens">Indicates whether to load the hard-coded internal token list</param>
        public PropertyReaderFactory(bool loadConfig, bool loadInternalTokens)
        {
            _combinedFactory = DefaultServiceLocator.GetService<ICombinedPropertyReaderFactory>();

            if (loadInternalTokens)
            {
                AddInternalTokens();
            }
            if (loadConfig)
            {
                LoadConfiguredTokens();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a new instance of the <see cref="PropertyReaderFactory"/>
        /// </summary>
        /// <param name="loadConfig">Indicates whether to load any tokens in the AppDomain's configuration file</param>
        /// <param name="loadInternalTokens">Indicates whether to load the hard-coded internal token list</param>
        public PropertyReaderFactory(bool loadConfig, bool loadInternalTokens)
        {
            _combinedFactory = DefaultServiceLocator.GetService <ICombinedPropertyReaderFactory>();

            if (loadInternalTokens)
            {
                AddInternalTokens();
            }
            if (loadConfig)
            {
                LoadConfiguredTokens();
            }
        }