Update package versions in csproj and package.json files

This commit is contained in:
2024-05-16 19:28:40 +07:00
parent 35dd2a1a9b
commit cbcbc7239b
25 changed files with 10477 additions and 128 deletions

View File

@@ -133,7 +133,7 @@ public static class ApiBootstrap
private static IServiceCollection AddMediatR(this IServiceCollection services)
{
return services.AddMediatR(AppDomain.CurrentDomain.GetAssemblies())
return services.AddMediatR(cfg => cfg.RegisterServicesFromAssemblies(AppDomain.CurrentDomain.GetAssemblies()))
.AddTransient(typeof(IPipelineBehavior<,>), typeof(ValidationBehaviour<,>))
.AddTransient(typeof(IUnhandledExceptionBehaviour<,>), typeof(UnhandledExceptionBehaviour<,>));
}