mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-05 12:27:45 -05:00
* fixed unwanted deletion of torrents in downloading metadata state * refactored jobs code * updated arr test data * updated gitignore * updated test configuration and removed dispensable files
27 lines
1.0 KiB
C#
27 lines
1.0 KiB
C#
using Executable.Jobs;
|
|
using Infrastructure.Verticals.Arr;
|
|
using Infrastructure.Verticals.ContentBlocker;
|
|
using Infrastructure.Verticals.DownloadClient;
|
|
using Infrastructure.Verticals.DownloadClient.Deluge;
|
|
using Infrastructure.Verticals.DownloadClient.QBittorrent;
|
|
using Infrastructure.Verticals.DownloadClient.Transmission;
|
|
using Infrastructure.Verticals.QueueCleaner;
|
|
|
|
namespace Executable.DependencyInjection;
|
|
|
|
public static class ServicesDI
|
|
{
|
|
public static IServiceCollection AddServices(this IServiceCollection services) =>
|
|
services
|
|
.AddTransient<SonarrClient>()
|
|
.AddTransient<RadarrClient>()
|
|
.AddTransient<QueueCleaner>()
|
|
.AddTransient<ContentBlocker>()
|
|
.AddTransient<FilenameEvaluator>()
|
|
.AddTransient<QBitService>()
|
|
.AddTransient<DelugeService>()
|
|
.AddTransient<TransmissionService>()
|
|
.AddTransient<ArrQueueIterator>()
|
|
.AddTransient<DownloadServiceFactory>()
|
|
.AddSingleton<BlocklistProvider>();
|
|
} |