public static async Task <List <string> > RestoreSecretsAsync(List <BackupSecretResult> secrets) { // Performs the restore and add the result into the list. var results = new List <SecretBundle>(); foreach (var secret in secrets) { var result = await _kv.RestoreSecretAsync(_baseUri, secret.Value).ConfigureAwait(false); results.Add(result); } // Returns the list of secret names. return(results.Select(p => p.SecretIdentifier.Name).ToList()); }