Exemple #1
0
        /// <summary>
        /// Get config file definition by file path.
        /// </summary>
        /// <param name="filePath">File path.</param>
        /// <returns>Config file definition.</returns>
        public IConfigFileDefinition GetConfigFileDefinitionByFilePath(string filePath)
        {
            var configDefinition = new ConfigFileDefinition();

            configDefinition.FilePath = this.BuildConfigFilePath(filePath);

            return(configDefinition);
        }
Exemple #2
0
        /// <summary>
        /// Get config file definition by attribute.
        /// </summary>
        /// <param name="attribute">Config file Attribute.</param>
        /// <returns>Config file definition.</returns>
        public IConfigFileDefinition GetConfigFileDefinitionByAttribute(ConfigFileAttribute attribute)
        {
            var configDefinition = new ConfigFileDefinition();

            configDefinition.Name     = attribute.Name;
            configDefinition.FilePath = this.BuildConfigFilePath(attribute.FilePath);
            configDefinition.Format   = attribute.Format;

            return(configDefinition);
        }