Example #1
0
        internal XmlConfigurationProvider(string path, XmlDocumentDecryptor xmlDocumentDecryptor, bool optional)
        {
            if (string.IsNullOrEmpty(path))
            {
                throw new ArgumentException(Resources.Error_InvalidFilePath, "path");
            }

            Optional = optional;
            Path     = path;

            _xmlDocumentDecryptor = xmlDocumentDecryptor ?? XmlDocumentDecryptor.Instance;
        }
Example #2
0
 internal XmlConfigurationProvider(string path, XmlDocumentDecryptor xmlDocumentDecryptor)
     : this(path, xmlDocumentDecryptor, optional : false)
 {
 }