[FEATURE REQ] Add a TryGetSecret method #36942
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
KeyVault
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name
Azure.Security.KeyVault.Secrets
Please describe the feature.
Currently, to recover secrets, there are only methods that return an error if it is not possible. (GetSecret, GetSecretAsync...).
However, this ends up generating an unwanted error. It would be nice to have TryGetSecret and TryGetSecretAsync. Which would return a bool if it managed to recover the secret (returning the value with out).
All the problem start here:
It would be another one like:
With
TrySendRequest
it will be possible to build all the others Try'methods.The text was updated successfully, but these errors were encountered: