第一种

1 public class ApplicationService
2 {
3         public void Create(string username, string password);
4 
5         //xxx其它方法 
6 }

第二种

1 public class ApplicationService
2 {
3         public CreateUserResponse Create(CreateUserRequest request);
4 
5         //xxx其它方法 
6 }

第三种

1 public class CreateUserCommand {}
2 
3 public class CreateUserCommandHandler {}
4 
5 //xxx其它Command

相关文章:

  • 2021-08-19
  • 2022-12-23
  • 2021-11-06
  • 2021-06-03
  • 2021-08-15
  • 2021-11-03
猜你喜欢
  • 2021-12-25
  • 2021-11-12
  • 2021-05-21
  • 2021-11-05
  • 2022-01-11
  • 2022-12-23
相关资源
相似解决方案