feat(di): register MediatR with service collection

This commit is contained in:
tekh 2025-07-24 14:09:20 +02:00
parent fe358623da
commit dc7da91872

View File

@ -15,6 +15,10 @@ public static class DependencyInjection
services.TryAddScoped<IProfileObjStateService, ProfileObjStateService>();
services.TryAddScoped<IProfileService, ProfileService>();
services.TryAddScoped<IStateService, StateService>();
services.AddMediatR(cfg =>
{
cfg.RegisterServicesFromAssembly(typeof(DependencyInjection).Assembly);
});
return services;
}