【计算机英语】The fact that I think the method is atomic signals that ...
The fact that I think the method is atomic signals that we should use a Service [Evans DDD] instead to make the whole thing more explicit.The Service could check the current debt and therefore be used proactively by the Order at good places in time.It could also be used pretty much reactively at save time,and some sort of request could be put on a queue and be used reactively after save.The Service would probably use the same Repository method as was just discussed,but that's not anything the caller needs to know,of course.
What should it do reactively after the save?Perhaps move the order to one of two states so that when the user stores an order,it goes into state NewOrder.Then the Service kicks in and moves the order to state Accepted or Denied
我实在看不懂了
人气:393 ℃ 时间:2019-11-06 12:52:06
解答
你哪地方看不懂就拿那个地方出来,2b,又没分,又这么长,还不诚恳,机器都不给你翻译
推荐
猜你喜欢
- 根据下列数的规律 -1 -3 1 -1 3 1,__最后一个数是
- m平方-n平方-6m-4n+5因式分解
- 阅读理解 Congratulations,Mr Jones,it is a girl.
- 470-X=2(190+X)怎么解
- 将一个高3分米的圆柱体的底面分成若干相等的扇形,然后沿半径将这个圆柱体切开并重新拼成一个近似长方体.
- 三个数的平均数是8.6,其中第一数是9.1,第二个数比第三个数小0.1,第三个数是多少?
- 某校女生占全校学生数的52%,比男生多80人,这个学校有多少人
- 舅舅比张强大19岁,正好是张强年龄的3倍多1岁.舅舅和张强各是几岁