Events-WebAPI fix and tweak

This commit is contained in:
Boris Milašinović
2026-05-12 17:23:45 +02:00
parent b66d05c298
commit 3f2e199ec4
12 changed files with 209 additions and 10 deletions

View File

@@ -1,4 +1,8 @@
using Events.Auth;
using Events.FilesAPI.Features.Certificates.Download;
using Events.FilesAPI.Features.Certificates.Synchronize;
using Events.FilesAPI.Features.RegistrationsExcel.Download;
using Events.FilesAPI.Features.RegistrationsExcel.Synchronize;
using Events.FilesAPI.Infrastructure.Messaging;
using Events.FilesAPI.Infrastructure.Options;
using Events.WebAPI.Handlers.EF.Data.Postgres;
@@ -19,6 +23,11 @@ builder.Services.AddOptions<GeneratedFilesOptions>()
"GeneratedFilesOptions:OutputPath must be configured.")
.ValidateOnStart();
builder.Services.AddTransient<CertificateFileGenerator>();
builder.Services.AddTransient<CertificateFileLocator>();
builder.Services.AddTransient<RegistrationsExcelFileGenerator>();
builder.Services.AddTransient<RegistrationsExcelFileLocator>();
builder.Services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(typeof(Program).Assembly));
builder.Services.SetupMassTransit(builder.Configuration);