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); }
public async Task RemoveConfigAsync(Guid appKey, Guid servKey, Guid envKey, string configName) { string configNameEncrypted = ConfigNameResolver.CreateConfigName(appKey, servKey, envKey, configName); await RemoveConfigAsync(configNameEncrypted); }
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); }