KeyVaultSecretProviderGetSecretAsync Method

Gets a secret configuration value

Definition

Namespace: InnerDrive.Azure
Assembly: InnerDrive.Azure (in InnerDrive.Azure.dll) Version: 5.2.9417.0
C#
public Task<string?> GetSecretAsync(
	string key,
	CancellationToken cancellationToken = default
)

Parameters

key  String
The configuration key
cancellationToken  CancellationToken  (Optional)
A CancellationToken controlling the request lifetime.

Return Value

TaskString
The configuration value

Implements

ISecretProviderGetSecretAsync(String, CancellationToken)

Remarks

This method will search the injected configuration and the environment if the secret is not contained in the key vault

See Also