mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-16 09:48:13 -05:00
27 lines
912 B
C#
27 lines
912 B
C#
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);
|
|
} |