Files
Cleanuparr/code/backend/Cleanuparr.Infrastructure/Http/IDynamicHttpClientProvider.cs
2025-06-18 21:58:48 +03:00

17 lines
590 B
C#

using Cleanuparr.Persistence.Models.Configuration;
namespace Cleanuparr.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="downloadClientConfig">The client configuration</param>
/// <returns>A configured HttpClient instance</returns>
HttpClient CreateClient(DownloadClientConfig downloadClientConfig);
}