Пример #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);
 }