public ICryptoOperations Convert(KeyVaultCryptoAttribute keyVaultCryptoAttribute) { return(new CryptoOperationsAsync(_keyVaultProviderFactory.GetKeyVaultProvider(keyVaultCryptoAttribute), keyVaultCryptoAttribute)); }
public Task <string> ConvertAsync(KeyVaultSecretAttribute keyVaultAttribute, CancellationToken cancellationToken) { var provider = _keyVaultProviderFactory.GetKeyVaultProvider(keyVaultAttribute); return(provider.GetSecret(keyVaultAttribute.SecretName, keyVaultAttribute.SecretVersion, cancellationToken)); }