diff options
author | vnugent <public@vaughnnugent.com> | 2023-01-27 21:13:16 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-01-27 21:13:16 -0500 |
commit | 5517211716c8b3e7a59a63b76dea585d9319bf8f (patch) | |
tree | 75b0f162526e8122c2ec224b78822943eed7aa61 /lib/Emails.Transactional.Plugin/src/Api Endpoints | |
parent | 3d22e908c168037838afd8b1d664e7ddf43dc684 (diff) |
Object cache overhaul and logger updates
Diffstat (limited to 'lib/Emails.Transactional.Plugin/src/Api Endpoints')
-rw-r--r-- | lib/Emails.Transactional.Plugin/src/Api Endpoints/SendEndpoint.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Emails.Transactional.Plugin/src/Api Endpoints/SendEndpoint.cs b/lib/Emails.Transactional.Plugin/src/Api Endpoints/SendEndpoint.cs index 9dd7f6a..9bcc966 100644 --- a/lib/Emails.Transactional.Plugin/src/Api Endpoints/SendEndpoint.cs +++ b/lib/Emails.Transactional.Plugin/src/Api Endpoints/SendEndpoint.cs @@ -111,7 +111,7 @@ namespace Emails.Transactional.Endpoints TimeSpan timeout = smtp["timeout_sec"].GetTimeSpan(TimeParseType.Seconds); //Load SMTP - _ = plugin.DeferTask(async () => + _ = plugin.ObserveTask(async () => { using SecretResult? password = await plugin.TryGetSecretAsync("smtp_password") ?? throw new KeyNotFoundException("Missing required 'smtp_password' in secrets"); //Copy the secre to the network credential @@ -129,7 +129,7 @@ namespace Emails.Transactional.Endpoints Client = new(); //Load the client when the secret finishes loading - _ = plugin.DeferTask(async () => + _ = plugin.ObserveTask(async () => { using SecretResult? secret = await plugin.TryGetSecretAsync("s3_secret") ?? throw new KeyNotFoundException("Missing required s3 client secret in config"); |