feat(application): add CQRS pipeline infrastructure and repository contracts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user