We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcac419 commit c1fe373Copy full SHA for c1fe373
DecSm.Atom.Module.AzureKeyVault/AzureKeySecretsProvider.cs
@@ -189,7 +189,9 @@ private TokenCredential GetCredential(IAzureKeyVault definition)
189
190
var port = buildDefinition.AccessParam(nameof(IAzureKeyVault.AzureVaultAuthPort)) switch
191
{
192
- string portString => int.Parse(portString),
+ string portString => int.TryParse(portString, out var parsedPort)
193
+ ? parsedPort
194
+ : throw new InvalidOperationException($"Invalid port value for AzureVaultAuthPort: '{portString}'. Please provide a valid integer."),
195
int portInt => portInt,
196
_ => 0,
197
};
0 commit comments