21 lines
781 B
C#
21 lines
781 B
C#
namespace File.Application.Common;
|
|
|
|
/// <summary>历史文件大小后台确认任务的轮询、批量和并发配置。</summary>
|
|
public class FileSizeVerificationOptions
|
|
{
|
|
/// <summary>配置节名称。</summary>
|
|
public const string SectionName = "File:SizeVerification";
|
|
|
|
/// <summary>两轮扫描之间的间隔秒数。</summary>
|
|
public int PollIntervalSeconds { get; set; } = 60;
|
|
|
|
/// <summary>Host 启动后的首次扫描延迟秒数。</summary>
|
|
public int StartupDelaySeconds { get; set; } = 15;
|
|
|
|
/// <summary>单轮最多处理的未确认文件数。</summary>
|
|
public int BatchSize { get; set; } = 100;
|
|
|
|
/// <summary>单轮查询 S3 对象元数据的最大并发数。</summary>
|
|
public int MaxConcurrency { get; set; } = 4;
|
|
}
|