mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-17 10:17:55 -05:00
reorganized project
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
namespace Cleanuparr.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);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all currently registered configurations
|
||||
/// </summary>
|
||||
IEnumerable<KeyValuePair<string, HttpClientConfig>> GetAllConfigurations();
|
||||
|
||||
/// <summary>
|
||||
/// Updates multiple configurations atomically
|
||||
/// </summary>
|
||||
void UpdateConfigurations(IEnumerable<KeyValuePair<string, HttpClientConfig>> configurations);
|
||||
}
|
||||
Reference in New Issue
Block a user