wabbajack/Wabbajack.DTOs.Test/Startup.cs
2021-10-23 10:51:17 -06:00

19 lines
556 B
C#

using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Wabbajack.DTOs.JsonConverters;
using Wabbajack.Networking.WabbajackClientApi;
namespace Wabbajack.DTOs.Test;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddDTOConverters();
services.AddDTOSerializer();
services.AddWabbajackClient();
services.AddSingleton(new ParallelOptions {MaxDegreeOfParallelism = 2});
services.AddSingleton<HttpClient>();
}
}