try fix download client factory

This commit is contained in:
Flaminel
2025-06-16 21:38:27 +03:00
parent f651663fd3
commit 0a8d1450dd
12 changed files with 495 additions and 115 deletions

View File

@@ -0,0 +1,27 @@
namespace Infrastructure.Http.DynamicHttpClientSystem;
/// <summary>
/// Store interface for managing HttpClient configurations dynamically
/// </summary>
public interface IHttpClientConfigStore
{
/// <summary>
/// Tries to get a configuration for the specified client name
/// </summary>
bool TryGetConfiguration(string clientName, out HttpClientConfig config);
/// <summary>
/// Adds or updates a configuration for the specified client name
/// </summary>
void AddConfiguration(string clientName, HttpClientConfig config);
/// <summary>
/// Removes a configuration for the specified client name
/// </summary>
void RemoveConfiguration(string clientName);
/// <summary>
/// Adds or updates a retry configuration for the specified client name
/// </summary>
void AddRetryConfiguration(string clientName, RetryConfig retryConfig);
}