mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-24 05:39:14 -05:00
fixed download clients not being invalidated on config change
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
namespace Infrastructure.Http.DynamicHttpClientSystem;
|
||||
|
||||
/// <summary>
|
||||
/// Service for invalidating cached HTTP client configurations
|
||||
/// </summary>
|
||||
public interface IHttpClientOptionsInvalidator
|
||||
{
|
||||
/// <summary>
|
||||
/// Invalidates the cached configuration for a specific client name
|
||||
/// </summary>
|
||||
/// <param name="clientName">The name of the client to invalidate</param>
|
||||
void InvalidateClient(string clientName);
|
||||
|
||||
/// <summary>
|
||||
/// Invalidates all cached HTTP client configurations
|
||||
/// </summary>
|
||||
void InvalidateAllClients();
|
||||
|
||||
/// <summary>
|
||||
/// Invalidates multiple client configurations
|
||||
/// </summary>
|
||||
/// <param name="clientNames">The names of the clients to invalidate</param>
|
||||
void InvalidateClients(IEnumerable<string> clientNames);
|
||||
}
|
||||
Reference in New Issue
Block a user