Implementierung von DirectorySearchService für Active Directory-Suchen. Unterstützt Caching und Konfiguration für Suchfunktionalität.

This commit is contained in:
Developer 02
2024-03-22 11:05:44 +01:00
parent 6659ac25c8
commit 9644d1653c
119 changed files with 2370 additions and 388 deletions

View File

@@ -2,7 +2,6 @@
using DigitalData.Core.Contracts.Application;
using DigitalData.Core.Contracts.Infrastructure;
using Microsoft.Extensions.DependencyInjection;
using System.DirectoryServices;
namespace DigitalData.Core.Application
{
@@ -61,5 +60,18 @@ namespace DigitalData.Core.Application
service.AddScoped<IDirectoryService, DirectoryService>();
return service;
}
public static IServiceCollection AddDirectorySearchService(this IServiceCollection service)
{
service.AddMemoryCache();
service.AddScoped<IDirectorySearchService, DirectorySearchService>();
return service;
}
public static IServiceCollection AddResponseService(this IServiceCollection service)
{
service.AddScoped<IResponseService, ResponseService>();
return service;
}
}
}
}