diff options
author | vnugent <public@vaughnnugent.com> | 2023-03-19 13:12:28 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-03-19 13:12:28 -0400 |
commit | d066a3d7ec26fd6919c514aeaccc4d6b086dc9c7 (patch) | |
tree | dd34663e8513f4b00a6bf326b33e2f9710da3dc3 /lib/Net.Rest.Client | |
parent | 36f1c3db6df08c5abb098bfe049b30fc443fbb5c (diff) |
RestSharp update, JWT api open up/change
Diffstat (limited to 'lib/Net.Rest.Client')
-rw-r--r-- | lib/Net.Rest.Client/src/RestClientPool.cs (renamed from lib/Net.Rest.Client/src/ClientPool.cs) | 16 | ||||
-rw-r--r-- | lib/Net.Rest.Client/src/VNLib.Net.Rest.Client.csproj | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/Net.Rest.Client/src/ClientPool.cs b/lib/Net.Rest.Client/src/RestClientPool.cs index 7d3bbd0..2d61203 100644 --- a/lib/Net.Rest.Client/src/ClientPool.cs +++ b/lib/Net.Rest.Client/src/RestClientPool.cs @@ -1,11 +1,11 @@ /* -* Copyright (c) 2022 Vaughn Nugent +* Copyright (c) 2023 Vaughn Nugent * * Library: VNLib * Package: VNLib.Net.Rest.Client -* File: ClientPool.cs +* File: RestClientPool.cs * -* ClientPool.cs is part of VNLib.Net.Rest.Client which is part of the larger +* RestClientPool.cs is part of VNLib.Net.Rest.Client which is part of the larger * VNLib collection of libraries and utilities. * * VNLib.Net.Rest.Client is free software: you can redistribute it and/or modify @@ -49,12 +49,12 @@ namespace VNLib.Net.Rest.Client public RestClientPool(int maxClients, RestClientOptions options, Action<RestClient>? initCb = null, IAuthenticator? authenticator = null) : base(() => { - RestClient client = new(options); //Add optional authenticator - if (authenticator != null) - { - client.UseAuthenticator(authenticator); - } + options.Authenticator = authenticator; + + //load client + RestClient client = new(options); + //Invoke init callback initCb?.Invoke(client); return client; diff --git a/lib/Net.Rest.Client/src/VNLib.Net.Rest.Client.csproj b/lib/Net.Rest.Client/src/VNLib.Net.Rest.Client.csproj index 1008df3..d25a307 100644 --- a/lib/Net.Rest.Client/src/VNLib.Net.Rest.Client.csproj +++ b/lib/Net.Rest.Client/src/VNLib.Net.Rest.Client.csproj @@ -41,7 +41,7 @@ <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> - <PackageReference Include="RestSharp" Version="108.0.3" /> + <PackageReference Include="RestSharp" Version="109.0.1" /> </ItemGroup> <ItemGroup> |