feat(di): register MediatR with service collection
This commit is contained in:
parent
fe358623da
commit
dc7da91872
@ -15,6 +15,10 @@ public static class DependencyInjection
|
|||||||
services.TryAddScoped<IProfileObjStateService, ProfileObjStateService>();
|
services.TryAddScoped<IProfileObjStateService, ProfileObjStateService>();
|
||||||
services.TryAddScoped<IProfileService, ProfileService>();
|
services.TryAddScoped<IProfileService, ProfileService>();
|
||||||
services.TryAddScoped<IStateService, StateService>();
|
services.TryAddScoped<IStateService, StateService>();
|
||||||
|
services.AddMediatR(cfg =>
|
||||||
|
{
|
||||||
|
cfg.RegisterServicesFromAssembly(typeof(DependencyInjection).Assembly);
|
||||||
|
});
|
||||||
|
|
||||||
return services;
|
return services;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user