wabbajack/Wabbajack.BuildServer/AppSettings.cs

33 lines
926 B
C#
Raw Normal View History

2020-01-09 04:42:25 +00:00
using Microsoft.Extensions.Configuration;
2020-03-28 20:42:45 +00:00
using Wabbajack.Common;
2020-01-09 04:42:25 +00:00
namespace Wabbajack.BuildServer
{
public class AppSettings
{
public AppSettings(IConfiguration config)
{
config.Bind("WabbajackSettings", this);
}
2020-03-28 20:42:45 +00:00
public AbsolutePath DownloadDir { get; set; }
public AbsolutePath ArchiveDir { get; set; }
2020-01-16 05:06:25 +00:00
public string TempFolder { get; set; }
2020-03-30 20:38:46 +00:00
public AbsolutePath TempPath => (AbsolutePath)TempFolder;
public bool JobScheduler { get; set; }
public bool JobRunner { get; set; }
public bool RunFrontEndJobs { get; set; }
public bool RunBackEndJobs { get; set; }
2020-01-21 12:49:49 +00:00
public string BunnyCDN_User { get; set; }
public string BunnyCDN_Password { get; set; }
public string SqlConnection { get; set; }
public int MaxJobs { get; set; } = 2;
2020-01-09 04:42:25 +00:00
}
}