From 282aad617b9c39a6f14c1cf527f6dd4523d0c54b Mon Sep 17 00:00:00 2001 From: vnugent Date: Fri, 27 Jan 2023 21:13:17 -0500 Subject: Object cache overhaul and logger updates --- lib/VNLib.Plugins.Extensions.Loading/src/VaultSecrets.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/VNLib.Plugins.Extensions.Loading/src/VaultSecrets.cs') diff --git a/lib/VNLib.Plugins.Extensions.Loading/src/VaultSecrets.cs b/lib/VNLib.Plugins.Extensions.Loading/src/VaultSecrets.cs index d3bdf42..da6650a 100644 --- a/lib/VNLib.Plugins.Extensions.Loading/src/VaultSecrets.cs +++ b/lib/VNLib.Plugins.Extensions.Loading/src/VaultSecrets.cs @@ -78,6 +78,7 @@ namespace VNLib.Plugins.Extensions.Loading /// public static Task TryGetSecretAsync(this PluginBase plugin, string secretName) { + plugin.ThrowIfUnloaded(); //Get the secret from the config file raw string? rawSecret = TryGetSecretInternal(plugin, secretName); if (rawSecret == null) @@ -159,6 +160,7 @@ namespace VNLib.Plugins.Extensions.Loading /// public static Task TryGetCertificateAsync(this PluginBase plugin, string secretName) { + plugin.ThrowIfUnloaded(); //Get the secret from the config file raw string? rawSecret = TryGetSecretInternal(plugin, secretName); if (rawSecret == null) -- cgit