wabbajack/Wabbajack.BuildServer/AppSettings.cs

35 lines
1.0 KiB
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-04-09 12:46:33 +00:00
public string DownloadDir { get; set; }
public AbsolutePath DownloadPath => (AbsolutePath)DownloadDir;
public string ArchiveDir { get; set; }
public AbsolutePath ArchivePath => (AbsolutePath)ArchiveDir;
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
}
}