move the behaviours about pdf to pdf dir

This commit is contained in:
2025-11-10 16:46:10 +01:00
parent c6a99b56a2
commit 67d0980c63
4 changed files with 28 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ using Microsoft.Extensions.Options;
using QRCoder;
using System.Reflection;
using GdPicture14;
using EnvelopeGenerator.Application.Common.Behaviors;
using EnvelopeGenerator.Application.Pdf.Behaviors;
namespace EnvelopeGenerator.Application;
@@ -87,7 +87,7 @@ public static class DependencyInjection
services.AddMediatR(cfg =>
{
cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly());
cfg.AddBehavior<SaveBurnedPdfBehavior>();
cfg.AddOpenBehaviors(new Type[] { typeof(AddReportBehavior), typeof(SavePdfBehavior) });
});
// Add memory cache