/// <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(); } }
/// <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(); } }