示例#1
0
        public async Task <string> GetConfigValueAsync(Guid appKey, Guid servKey, Guid envKey, string configName)
        {
            string       configNameEncrypted = ConfigNameResolver.CreateConfigName(appKey, servKey, envKey, configName);
            SecretBundle secretItem          = await _client.GetSecretAsync(_keyVaultUrl, configNameEncrypted);

            return(secretItem.Value);
        }
示例#2
0
        public async Task RemoveConfigAsync(Guid appKey, Guid servKey, Guid envKey, string configName)
        {
            string configNameEncrypted = ConfigNameResolver.CreateConfigName(appKey, servKey, envKey, configName);

            await RemoveConfigAsync(configNameEncrypted);
        }
示例#3
0
 public async Task AddConfigAsync(Guid appKey, Guid servKey, Guid envKey, string configName, string configValue)
 {
     string configNameEncrypted = ConfigNameResolver.CreateConfigName(appKey, servKey, envKey, configName);
     await _client.SetSecretAsync(_keyVaultUrl, configNameEncrypted, configValue);
 }