From 9bb5ddd8f19c0ecabd7af4ee58d80c16826bc183 Mon Sep 17 00:00:00 2001 From: vman Date: Wed, 28 Dec 2022 14:19:32 -0500 Subject: Cache provider abstractions, reduced deps --- Plugins/CacheBroker/CacheBroker.csproj | 2 ++ Plugins/CacheBroker/Endpoints/BrokerRegistrationEndpoint.cs | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'Plugins/CacheBroker') diff --git a/Plugins/CacheBroker/CacheBroker.csproj b/Plugins/CacheBroker/CacheBroker.csproj index f4ea139..1d4fdcc 100644 --- a/Plugins/CacheBroker/CacheBroker.csproj +++ b/Plugins/CacheBroker/CacheBroker.csproj @@ -6,6 +6,8 @@ VNLib.Plugins.Cache.Broker Vaughn Nugent 1.0.1.2 + True + \\vaughnnugent.com\Internal\Folder Redirection\vman\Documents\Programming\Software\StrongNameingKey.snk diff --git a/Plugins/CacheBroker/Endpoints/BrokerRegistrationEndpoint.cs b/Plugins/CacheBroker/Endpoints/BrokerRegistrationEndpoint.cs index be700d1..7867e97 100644 --- a/Plugins/CacheBroker/Endpoints/BrokerRegistrationEndpoint.cs +++ b/Plugins/CacheBroker/Endpoints/BrokerRegistrationEndpoint.cs @@ -33,9 +33,7 @@ using System.Threading; using System.Net.Sockets; using System.Threading.Tasks; using System.Collections.Generic; -using System.Security.Cryptography; using System.Text.Json.Serialization; -using System.Security.Cryptography.X509Certificates; using RestSharp; @@ -110,8 +108,7 @@ namespace VNLib.Plugins.Cache.Broker.Endpoints private async Task GetClientPublic() { - using SecretResult secret = await this.GetPlugin().TryGetSecretAsync("client_public_key") ?? throw new InvalidOperationException("Client public key not found in vault"); - return secret.GetJsonWebKey(); + return await this.GetPlugin().TryGetSecretAsync("client_public_key").ToJsonWebKey() ?? throw new InvalidOperationException("Client public key not found in vault"); } private async Task GetCachePublic() -- cgit