refactor(DirectorySearchOptions): Machen Sie ServerName und Root erforderlich und UserCacheExpirationDays nullable double.

This commit is contained in:
Developer 02
2025-01-16 22:28:36 +01:00
parent 725b186db6
commit 63ab47a288
4 changed files with 17 additions and 18 deletions

View File

@@ -5,21 +5,24 @@
/// </summary>
public class DirectorySearchOptions
{
//TODO: Merge with Root and rename as path
/// <summary>
/// Gets or initializes the name of the server to be used in the directory search.
/// </summary>
public string? ServerName { get; init; }
public required string ServerName { get; init; }
/// <summary>
/// Gets or initializes the root directory path for the search.
/// </summary>
public string? Root { get; init; }
public required string Root { get; init; }
//TODO: Convert to timespan
/// <summary>
/// Gets or initializes the number of days before the user cache expires.
/// </summary>
public int UserCacheExpirationDays { get; init; }
public double? UserCacheExpirationDays { get; init; }
//TODO: Rename as CustomSearchFilters
/// <summary>
/// Gets or initializes the custom search filters to be applied during directory searches.
/// </summary>