Skip to content

Commit

Permalink
Register mediatr services correctly (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymens authored Feb 19, 2024
1 parent 8617bae commit b3ff839
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static IServiceCollection AddApplication(this IServiceCollection services
services.AddTransient(typeof(IPipelineBehavior<,>), typeof(ComplianceBehaviour<,>));

services.AddValidatorsFromAssembly(Application.AssemblyReference.Assembly);
services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(typeof(ApplicationInjection).Assembly));
services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(Application.AssemblyReference.Assembly));

services.AddSingleton<IDateTimeProvider, SystemDateTimeProvider>();

Expand Down

0 comments on commit b3ff839

Please sign in to comment.