Commit a76ddddb authored by hasan khaddour's avatar hasan khaddour

register mediatr

parent 236adc61
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using PSManagement.Application.Contracts.Authentication;
using MediatR;
using System.Reflection;
namespace PSManagement.Application.DI
{
......@@ -8,6 +10,9 @@ namespace PSManagement.Application.DI
{
public static IServiceCollection AddApplication(this IServiceCollection services)
{
//services.AddMediatR();
services.AddMediatR(Assembly.GetExecutingAssembly());
return services;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment