mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-23 05:10:26 -05:00
try fix download client factory
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user