Replies: 1 comment 3 replies
-
|
hi
Are these application services called in the same request or two requests? Because you shouldn't call another Consider use Domain Service https://abp.io/docs/latest/framework/architecture/best-practices/domain-services |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have
PaymentApplicationServicewhere I create payment, after that I need to execute method in theOrderApplicationServicewhich marks order for which I have made a payment as paid. I think that this should be done in boundaries of one transaction. Does ABP allows me to reach this kind of functionality?I see that in my
PaymentApplicationServiceI can haveUnitOfWorkManagerfrom the parent class -ApplicationServiceandUnitOfWorkManagerhaveBeginmethod which can start transaction.Let's say I call
Beginmethod in procedureFooofPaymentApplicationService. I want to commit this transaction in theFoo1procedure ofOrderApplicationService.This is the place where I have doubts, I am not sure if the transaction that has started in
Fooprocedure won't be commited whenFooprocedure is completed.Beta Was this translation helpful? Give feedback.
All reactions