mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2025-12-30 09:28:22 -05:00
* refactored code added deluge support added transmission support added content blocker added blacklist and whitelist * increased level on some logs; updated test docker compose; updated dev appsettings * updated docker compose and readme * moved some logs * fixed env var typo; fixed sonarr and radarr default download client
16 lines
854 B
C#
16 lines
854 B
C#
using Common.Configuration;
|
|
using Common.Configuration.ContentBlocker;
|
|
|
|
namespace Executable.DependencyInjection;
|
|
|
|
public static class ConfigurationDI
|
|
{
|
|
public static IServiceCollection AddConfiguration(this IServiceCollection services, IConfiguration configuration) =>
|
|
services
|
|
.Configure<ContentBlockerConfig>(configuration.GetSection(ContentBlockerConfig.SectionName))
|
|
.Configure<QBitConfig>(configuration.GetSection(QBitConfig.SectionName))
|
|
.Configure<DelugeConfig>(configuration.GetSection(DelugeConfig.SectionName))
|
|
.Configure<TransmissionConfig>(configuration.GetSection(TransmissionConfig.SectionName))
|
|
.Configure<SonarrConfig>(configuration.GetSection(SonarrConfig.SectionName))
|
|
.Configure<RadarrConfig>(configuration.GetSection(RadarrConfig.SectionName));
|
|
} |