mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
28 lines
928 B
C#
28 lines
928 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Wabbajack.Downloaders.Http;
|
|
using Wabbajack.Downloaders.IPS4OAuth2Downloader;
|
|
using Wabbajack.Downloaders.MediaFire;
|
|
using Wabbajack.Downloaders.ModDB;
|
|
using Wabbajack.DTOs.JsonConverters;
|
|
|
|
namespace Wabbajack.Downloaders
|
|
{
|
|
public static class ServiceExtensions
|
|
{
|
|
public static IServiceCollection AddDownloadDispatcher(this IServiceCollection services)
|
|
{
|
|
return services
|
|
.AddDTOConverters()
|
|
.AddDTOSerializer()
|
|
.AddGoogleDriveDownloader()
|
|
.AddHttpDownloader()
|
|
.AddMegaDownloader()
|
|
.AddMediaFireDownloader()
|
|
.AddModDBDownloader()
|
|
.AddNexusDownloader()
|
|
.AddIPS4OAuth2Downloaders()
|
|
.AddWabbajackCDNDownloader()
|
|
.AddSingleton<DownloadDispatcher>();
|
|
}
|
|
}
|
|
} |