XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEToolBox

【WPF】XFE工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
namespace XFEToolBox.Server.Core.Options;

public sealed class ToolPackageValidationOptions
{
    public long MaxPackageBytes { get; set; } = 10 * 1024 * 1024;

    public long MaxExpandedBytes { get; set; } = 30 * 1024 * 1024;

    public int MaxFileCount { get; set; } = 256;

    public double MaxCompressionRatio { get; set; } = 100;

    public long MaxManifestBytes { get; set; } = 256 * 1024;

    public long MaxXamlCharacters { get; set; } = 2 * 1024 * 1024;

    public HashSet<string> AllowedFileExtensions { get; set; } = new(StringComparer.OrdinalIgnoreCase)
    {
        ".xaml", ".cs", ".json", ".xml", ".resx", ".txt", ".md",
        ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".ico", ".svg",
        ".ttf", ".otf"
    };
}