mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-16 09:48:13 -05:00
fixed download clients not being invalidated on config change
This commit is contained in:
@@ -20,6 +20,9 @@ public static class DynamicHttpClientServiceCollectionExtensions
|
||||
services.AddSingleton<IConfigureOptions<HttpClientFactoryOptions>, DynamicHttpClientConfiguration>();
|
||||
services.AddSingleton<IDynamicHttpClientFactory, DynamicHttpClientFactory>();
|
||||
|
||||
// Register the cache invalidation service
|
||||
services.AddSingleton<IHttpClientOptionsInvalidator, HttpClientOptionsInvalidator>();
|
||||
|
||||
// Add base HttpClient factory
|
||||
services.AddHttpClient();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user