增加Mediat Pip特性,并用实例来做一个demo
This commit is contained in:
1 parent
292cb8638c
commit
c9ac7412ab
19 files changed
+682
-108
No files matched your search
@@ -1,4 +1,7 @@
|
||||
using MAX.Core.DependencyInjection;
|
||||
using MediatR;
|
||||
using Store.Users.Commands;
|
||||
using Store.Users.Contracts.Dtos;
|
||||
using MAX.Core.DependencyInjection;
|
||||
using MAX.Core.Interfaces;
|
||||
|
||||
namespace Store.Users
|
||||
@@ -13,6 +16,7 @@ namespace Store.Users
|
||||
|
||||
public void Register(IServiceRegistrar registrar)
|
||||
{
|
||||
registrar.RegisterTransient<IRequestHandler<ShopRenewCommand, ShopRenewResponse>, ShopRenewCommandHandler>();
|
||||
}
|
||||
|
||||
public void Start(IServiceProvider serviceProvider)
|
||||
|
||||
Reference in new issue
Block a user