feat(application): add CQRS pipeline infrastructure and repository contracts

This commit is contained in:
2026-10-09 23:06:00 +02:00
parent 986d0aa256
commit 4f0718a4f5
6 changed files with 125 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ using MediatR;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System.Reflection;
using DigitalData.TaskFlow.Application.Common.Behaviors;
namespace DigitalData.TaskFlow.Application;
@@ -30,6 +31,7 @@ public static class DependencyInjection
});
services.AddValidatorsFromAssembly(typeof(DependencyInjection).Assembly);
services.AddTransient(typeof(IPipelineBehavior<,>), typeof(ValidationBehavior<,>));
services.AddAutoMapper(_ => { }, Assembly.GetExecutingAssembly());
return services;