Compare commits
2 Commits
d2180c912b
...
b69867468d
| Author | SHA1 | Date | |
|---|---|---|---|
| b69867468d | |||
| 160a3cb568 |
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user