17 lines
543 B
C#
17 lines
543 B
C#
namespace OneDriveBackupService;
|
|
|
|
public sealed class ConfigData {
|
|
public string Schedule { get; }
|
|
public string BackupUploadRoot { get; }
|
|
public string LocalRoot { get; }
|
|
public string IncludeFile { get; }
|
|
public int KeepLast { get; }
|
|
|
|
public ConfigData(IConfiguration config) {
|
|
Schedule = config["Schedule"]!;
|
|
BackupUploadRoot = config["UploadRoot"]!;
|
|
LocalRoot = config["LocalRoot"]!;
|
|
IncludeFile = config["IncludeFile"]!;
|
|
KeepLast = int.Parse(config["KeepLast"]!);
|
|
}
|
|
} |