【計(jì)算機(jī)英語】The fact that I think the method is atomic signals that ...
【計(jì)算機(jī)英語】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
我實(shí)在看不懂了
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
我實(shí)在看不懂了
英語人氣:162 ℃時間:2019-11-06 12:52:06
優(yōu)質(zhì)解答
你哪地方看不懂就拿那個地方出來,2b,又沒分,又這么長,還不誠懇,機(jī)器都不給你翻譯
我來回答
類似推薦
- I think that subiect is boring(同義句轉(zhuǎn)換) I( )think that subject is( )
- thinking that you know what in fact you don't is a terrible mistake.
- I think that
- thinking that you know_____in fact you don't is not a good idea.
- English people think that the home is a place to protect themselves from the outside world,not one for others to see and
- 中國共產(chǎn)黨全體代表大會 和全國人民代表大會各自的簡稱是什么?比如幾大.幾屆幾中全會.
- 算式,某人乘船由A地順溜而下到B地,然后又乘船逆流而上至C地,共乘船3小時.已知船在近水中速度為8KM一小時,水流速度為2KM小時,若AC兩地得距離為2KM則AB兩地距離為?
- 魯濱遜的遜是讀《xun還是sun》?
- 摩爾比怎么算
- 八下英語改錯
- 實(shí)驗(yàn)室加熱約2mL液體,可以使用的儀器是
- 黑板在墻上英語用in還是on
猜你喜歡
- 1若直線l過拋物線y=ax2(a>0)的焦點(diǎn),并且與y軸垂直,若l被拋物線截得的線段長為4,則a=_.
- 2“地”有幾個讀音?
- 3我忘不了你的鼓勵,作文600字
- 4(1)已知:f(x)=4x2?12x?32x+1,x∈[0,1],求函數(shù)f(x)的單調(diào)區(qū)間和值域; (2)a≥1,函數(shù)g(x)=x3-3a2x-2a,x∈[0,1],判斷函數(shù)g(x)的單調(diào)性并予以證明; (3)當(dāng)a≥1時,上述(1)、(
- 52x-(25-x)=8,x=
- 6Mary-----(see) her uncle the day after tomorrow.
- 7It is +時間段+since=?
- 8帶過字的二字詞語:過于激烈叫( )超過期望叫( )超過限度叫( )事情經(jīng)過叫( )
- 9甲乙倆人同時從相距100km的兩地相向而行,甲乙的速度分別是6KM/h和4KM/h,
- 10甲數(shù)的五分之一等于乙數(shù)的八分之一,甲數(shù)是乙數(shù)的百分之幾.
- 11已知f(x)=Inx^2,(x>0)的值域?yàn)閇-1,1],則其反函數(shù)的值域?yàn)?
- 12which city do you like best in China?