DDD:应用层的三种组织风格

第一种

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
原文地址:https://www.cnblogs.com/happyframework/p/2986021.html