| | | 1 | | // ----------------------------------------------------------------------- |
| | | 2 | | // <copyright file="RecentFilesOptions.cs" company="Stéphane ANDRE"> |
| | | 3 | | // Copyright (c) Stéphane ANDRE. All rights reserved. |
| | | 4 | | // </copyright> |
| | | 5 | | // ----------------------------------------------------------------------- |
| | | 6 | | |
| | | 7 | | using System; |
| | | 8 | | using System.Collections.Generic; |
| | | 9 | | |
| | | 10 | | namespace MyNet.IO.FileHistory; |
| | | 11 | | |
| | | 12 | | /// <summary> |
| | | 13 | | /// Represents configuration options for managing a list of recently accessed files, including the maximum number of ent |
| | | 14 | | /// </summary> |
| | | 15 | | public sealed class RecentFilesOptions |
| | | 16 | | { |
| | | 17 | | /// <summary> |
| | | 18 | | /// Gets the base path where recent file information will be stored. This can be a directory path or a registry key |
| | | 19 | | /// </summary> |
| | | 20 | | public string BasePath { get; init; } = string.Empty; |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Gets the maximum number of recent file entries to maintain. When the number of entries exceeds this limit, the o |
| | | 24 | | /// </summary> |
| | | 25 | | public int MaxEntries { get; init; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Gets the set of supported file extensions for recent file entries. Only files with these extensions will be trac |
| | | 29 | | /// </summary> |
| | 26 | 30 | | public IReadOnlySet<string> SupportedExtensions { get; init; } = new HashSet<string>(StringComparer.OrdinalIgnoreCas |
| | | 31 | | } |
| | | 32 | | |