mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-11-02 12:25:07 -05:00
removed unused createclient config overload
This commit is contained in:
1 parent
674e8db3bf
commit
71f0535a03
2 files changed
-11
No files matched your search
-6
@@ -52,12 +52,6 @@ public class DynamicHttpClientFactory : IDynamicHttpClientFactory
|
||||
|
||||
private void BumpGeneration(string clientName) => _generations.AddOrUpdate(clientName, 1, (_, generation) => generation + 1);
|
||||
|
||||
public HttpClient CreateClient(string clientName, HttpClientConfig config)
|
||||
{
|
||||
RegisterConfiguration(clientName, config);
|
||||
return CreateClient(clientName);
|
||||
}
|
||||
|
||||
public HttpClient CreateClient(string clientName)
|
||||
{
|
||||
if (!_configStore.TryGetConfiguration(clientName, out _))
|
||||
|
||||
-5
@@ -9,11 +9,6 @@ namespace Cleanuparr.Infrastructure.Http.DynamicHttpClientSystem;
|
||||
/// </summary>
|
||||
public interface IDynamicHttpClientFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates an HttpClient with the specified configuration and registers it for future use
|
||||
/// </summary>
|
||||
HttpClient CreateClient(string clientName, HttpClientConfig config);
|
||||
|
||||
/// <summary>
|
||||
/// Creates an HttpClient using a previously registered configuration
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user