15 lines
428 B
C#
15 lines
428 B
C#
namespace LaaProduction.Search
|
|
{
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
public static class SearchExtensions
|
|
{
|
|
public static IServiceCollection AddSearching(this IServiceCollection services, string sqlConnectionString)
|
|
{
|
|
ServiceProvider.RegisterInternalServices(sqlConnectionString);
|
|
|
|
return services.AddScoped<ISearchManager, SearchManager>();
|
|
}
|
|
}
|
|
}
|