- 为文件库的定时轮询及根目录扫描过程,新增扫描生命周期日志 - 允许通过 `appsettings` 配置文件,自定义定时扫描的轮询间隔 - 当检测到媒体文件已被删除时,自动清理过期的缩略图映射记录及对应的缩略图文件
14 lines
369 B
C#
14 lines
369 B
C#
namespace FileShare_API.Services
|
|
{
|
|
/// <summary>
|
|
/// 文件库定时扫描后台服务配置。
|
|
/// </summary>
|
|
public sealed class FileLibraryScanOptions
|
|
{
|
|
/// <summary>
|
|
/// 后台服务检查到期文件库目录的轮询间隔分钟数。
|
|
/// </summary>
|
|
public int PollingIntervalMinutes { get; set; } = 1;
|
|
}
|
|
}
|