public void UserEvt()
 {
     CommandBus.RegisterAll();
     // 发布添加用户命令
     CommandBus.Send(new AddUserCommand {
         UserName = "******", Email = "*****@*****.**"
     });
     // 发布编辑用户命令
     CommandBus.Send(new EditUserCommand {
         UserName = "******", UserID = 1
     });
     // 发布刪除用户命令
     CommandBus.Send(new DelUserCommand {
         UserID = 1
     });
 }