mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-03-04 14:27:52 -05:00
This commit is contained in:
16
code/Infrastructure/Http/IDynamicHttpClientProvider.cs
Normal file
16
code/Infrastructure/Http/IDynamicHttpClientProvider.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Common.Configuration.DownloadClient;
|
||||
|
||||
namespace Infrastructure.Http;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for a provider that creates HTTP clients dynamically based on client configuration
|
||||
/// </summary>
|
||||
public interface IDynamicHttpClientProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates an HTTP client configured for the specified download client
|
||||
/// </summary>
|
||||
/// <param name="clientConfig">The client configuration</param>
|
||||
/// <returns>A configured HttpClient instance</returns>
|
||||
HttpClient CreateClient(ClientConfig clientConfig);
|
||||
}
|
||||
Reference in New Issue
Block a user