Compare commits

...

2 Commits

Author SHA1 Message Date
b69867468d feat(DirectorySearchQuery): Optionen in AfterInit umbenennen 2025-08-04 16:54:02 +02:00
160a3cb568 chore(API): arrange dependency versions 2025-08-04 15:55:50 +02:00
2 changed files with 12 additions and 4 deletions

View File

@@ -6,8 +6,16 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.3.2" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.4" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.3" />
</ItemGroup>
<ItemGroup>

View File

@@ -8,7 +8,7 @@ namespace DigitalData.ActiveDirectory;
public record DirectorySearchQuery(string? Filter = null, SearchScope Scope = SearchScope.Subtree, int SizeLimit = 5000, params string[] properties)
: IRequest<IEnumerable<ResultPropertyCollection>>
{
public Action<DirectorySearcher>? Options { get; set; }
public Action<DirectorySearcher>? AfterInit { get; set; }
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Interoperability", "CA1416:Validate platform compatibility", Justification = "<Pending>")]
@@ -41,7 +41,7 @@ public class DirectorySearchQueryHandler : IRequestHandler<DirectorySearchQuery,
SearchRoot = _dirEntry
};
request.Options?.Invoke(searcher);
request.AfterInit?.Invoke(searcher);
if (request.properties.Length > 0)
searcher.PropertiesToLoad.Clear();