コード例 #1
0
 public ICryptoOperations Convert(KeyVaultCryptoAttribute keyVaultCryptoAttribute)
 {
     return(new CryptoOperationsAsync(_keyVaultProviderFactory.GetKeyVaultProvider(keyVaultCryptoAttribute), keyVaultCryptoAttribute));
 }
コード例 #2
0
        public Task <string> ConvertAsync(KeyVaultSecretAttribute keyVaultAttribute, CancellationToken cancellationToken)
        {
            var provider = _keyVaultProviderFactory.GetKeyVaultProvider(keyVaultAttribute);

            return(provider.GetSecret(keyVaultAttribute.SecretName, keyVaultAttribute.SecretVersion, cancellationToken));
        }