19 lines
No EOL
670 B
C#
19 lines
No EOL
670 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using RdtClient.Service.Services;
|
|
|
|
namespace RdtClient.Service
|
|
{
|
|
public static class DiConfig
|
|
{
|
|
public static void Config(IServiceCollection services)
|
|
{
|
|
services.AddScoped<IAuthentication, Authentication>();
|
|
services.AddScoped<IDownloads, Downloads>();
|
|
services.AddScoped<IQBittorrent, QBittorrent>();
|
|
services.AddScoped<IRemoteService, RemoteService>();
|
|
services.AddScoped<ISettings, Settings>();
|
|
services.AddScoped<ITorrents, Torrents>();
|
|
services.AddScoped<ITorrentRunner, TorrentRunner>();
|
|
}
|
|
}
|
|
} |