Is it possible to inject one application service into another application service #15343
Answered
by
EngincanV
rajasingh012
asked this question in
Q&A
-
If I have code like this
Is it possible to inject IssueAppService in ProjectAppService. I want to override GetAsync in ProjectAppService so the return JSON should like
|
Beta Was this translation helpful? Give feedback.
Answered by
EngincanV
Jan 5, 2023
Replies: 1 comment 2 replies
-
Yes, it's possible but I would not suggest it, instead use the domain layer for the required task (for example repositories). Let me share a quote from Application Services Best Practices & Conventions document:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
rajasingh012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it's possible but I would not suggest it, instead use the domain layer for the required task (for example repositories).
Let me share a quote from Application Services Best Practices & Conventions document: