mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2025-12-28 16:38:12 -05:00
41 lines
1.8 KiB
C#
41 lines
1.8 KiB
C#
using Common.Configuration.ContentBlocker;
|
|
using Common.Configuration.DownloadCleaner;
|
|
using Common.Configuration.QueueCleaner;
|
|
using Infrastructure.Interceptors;
|
|
using Infrastructure.Providers;
|
|
using Infrastructure.Verticals.Arr;
|
|
using Infrastructure.Verticals.ContentBlocker;
|
|
using Infrastructure.Verticals.DownloadCleaner;
|
|
using Infrastructure.Verticals.DownloadClient;
|
|
using Infrastructure.Verticals.DownloadClient.Deluge;
|
|
using Infrastructure.Verticals.DownloadClient.QBittorrent;
|
|
using Infrastructure.Verticals.DownloadClient.Transmission;
|
|
using Infrastructure.Verticals.ItemStriker;
|
|
using Infrastructure.Verticals.QueueCleaner;
|
|
|
|
namespace Executable.DependencyInjection;
|
|
|
|
public static class ServicesDI
|
|
{
|
|
public static IServiceCollection AddServices(this IServiceCollection services) =>
|
|
services
|
|
.AddTransient<IDryRunInterceptor, DryRunInterceptor>()
|
|
.AddTransient<SonarrClient>()
|
|
.AddTransient<RadarrClient>()
|
|
.AddTransient<LidarrClient>()
|
|
.AddTransient<QueueCleaner>()
|
|
.AddTransient<ContentBlocker>()
|
|
.AddTransient<DownloadCleaner>()
|
|
.AddTransient<IFilenameEvaluator, FilenameEvaluator>()
|
|
.AddTransient<DummyDownloadService>()
|
|
.AddTransient<QBitService>()
|
|
.AddTransient<DelugeService>()
|
|
.AddTransient<TransmissionService>()
|
|
.AddTransient<ArrQueueIterator>()
|
|
.AddTransient<DownloadServiceFactory>()
|
|
.AddSingleton<BlocklistProvider>()
|
|
.AddSingleton<IStriker, Striker>()
|
|
.AddSingleton<IgnoredDownloadsProvider<QueueCleanerConfig>>()
|
|
.AddSingleton<IgnoredDownloadsProvider<ContentBlockerConfig>>()
|
|
.AddSingleton<IgnoredDownloadsProvider<DownloadCleanerConfig>>();
|
|
} |