in src/Amazon.SecretsManager.Extensions.Caching/SecretCacheObject.cs [212:230]
public async Task<GetSecretValueResponse> GetSecretValue()
{
bool success = false;
await Lock.WaitAsync();
try
{
success = await RefreshAsync();
}
finally
{
Lock.Release();
}
if (!success && null == data && null != exception)
{
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(exception).Throw();
}
return await GetSecretValueAsync(GetResult());
}