using System.ComponentModel.DataAnnotations; namespace Manager.App.Models.Settings; public class DownloadSettings { [ConfigurationKeyName("MaxConcurrentDownloads")] [Range(-1, 20, ErrorMessage = "Max concurrent downloads must be between 0 and 20. (0 for unlimited concurrent downloads)")] public int MaxConcurrentDownloads { get; set; } = 5; }