отказ от mediatr

This commit is contained in:
gorbenko.pavel
2026-07-23 16:45:18 +05:00
parent 0ddb9f0ba6
commit 7cce18e67b
16 changed files with 336 additions and 494 deletions
@@ -1,6 +1,7 @@
using System.Reflection;
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using Tnsu.ApprovalRoute.Application.RequestTypes;
using Tnsu.ApprovalRoute.Application.TemplateRoutes;
using Tnsu.ApprovalRoute.Application.TemplateRouteSteps;
namespace Tnsu.ApprovalRoute.Application;
@@ -8,7 +9,10 @@ public static class ApplicationServiceCollectionExtensions
{
public static IServiceCollection AddApprovalRouteApplication(this IServiceCollection services)
{
services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly()));
services.AddScoped<RequestTypeService>();
services.AddScoped<TemplateRouteService>();
services.AddScoped<TemplateRouteStepService>();
return services;
}
}