Events-WebAPI fix and tweak
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user