diff options
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> |