refactor(unitFilterService): Этапы фильтрации вынесены в отдельные классы
This commit is contained in:
@@ -18,7 +18,8 @@ using PARR.Core.Services.TaskServices.Interfaces;
|
||||
using PARR.Core.Services.TaskServices.Providers;
|
||||
using PARR.Core.Services.TaskServices.ReconciliationHosted;
|
||||
using PARR.Core.Services.UnitFilterService;
|
||||
using PARR.Core.Services.UnitFilterService.Models;
|
||||
using PARR.Core.Services.UnitFilterService.Matchers;
|
||||
using PARR.Core.Services.UnitFilterService.Matchers.Interfaces;
|
||||
using PARR.Core.Services.UnitService.Implementations;
|
||||
using PARR.Core.Services.UnitService.Interfaces;
|
||||
using PARR.Core.Services.Workload.Implementations;
|
||||
@@ -131,11 +132,12 @@ namespace PARR.Core
|
||||
|
||||
#region UnitFilterService
|
||||
|
||||
services.AddTransient<IUnitFilterService, UnitFilterService>();
|
||||
services.Configure<UnitFilterServiceOptions>(options =>
|
||||
{
|
||||
options.LoadBatchSize = 50;
|
||||
});
|
||||
services.AddScoped<IUnitFieldMatcher, UnitFieldMatcher>();
|
||||
services.AddScoped<IUnitRelationshipMatcher, UnitRelationshipMatcher>();
|
||||
services.AddScoped<IUmbrellaFilter, UmbrellaFilter>();
|
||||
services.AddScoped<IUnitNameResolver, UnitNameResolver>();
|
||||
services.AddScoped<IUnitFilterResultLoader, UnitFilterResultLoader>();
|
||||
services.AddScoped<IUnitFilterService, UnitFilterService>();
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user