CustomConfigurations.Config.DecryptConfigurationSection C# (CSharp) Method

DecryptConfigurationSection() public method

public DecryptConfigurationSection ( ) : void
return void
        public void DecryptConfigurationSection()
        {
            var pathToConfig = FindConfigFileLocation("");

            foreach (var path in DetermineConfigurationPath(pathToConfig))
            {
                if (!string.IsNullOrEmpty(path.Trim()))
                {
                    DecryptConfigurationSection(pathToConfig, path);
                }
            }
        }

Same methods

Config::DecryptConfigurationSection ( string sectionName ) : void
Config::DecryptConfigurationSection ( string configPath, string sectionName ) : void

Usage Example

 public static void DecryptDeployments()
 {
     var config = new Config();
     config.DecryptConfigurationSection("deployments");
 }