public ucDataConnectionEditor(IBaseNode node) { InitializeComponent(); baseNode = node; lblTitle.Text = node.Name; string UserAppFolder = ConfigurationRepository.IConfiguration.GetConfigurationValue("UserAppDataPath", ""); rootPath = string.Format("{0}{1}-{2}-config.xml", UserAppFolder, node.Parent.Name.ToLower(), node.Name.ToLower()); conf.AddConfigurationSource( new IConfigurationSourceImpl("UserAppDataPath", Constants.ConfigurationSource, rootPath)); string keyId = string.Format("{0}-{1}", node.Parent.Name.ToLower(), node.Name.ToLower()); IKey key = new IKeyImpl(keyId); key.keyBytes = KeyUtils.GetBytes(node.Reference.Replace("-", "")); conf.IKms.AddKey(key); IConfigurationItem item = new IConfigurationItemImpl("secret", "", Constants.ConfigurationSource); item.StorageKey = keyId; conf.AddConfigurationItem(item); string plain = item.GetValue(""); log.Debug(plain); }