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

posted on 2013-03-27 09:24  幸福框架  阅读(2152)  评论(1编辑  收藏  举报

导航

我要啦免费统计