-
I just started CQRS. I had been doing unit of work & repository pattern and always use dispose in business logic. Now I'm not sure where to put dispose in new CQRS. I inject dataconnection
In GetCopmanyQueryhandler.cs
Do I still need to put IDisposable / dispose in CQRS? Or not necessary and it will dispose automatically? Anyone advises? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
sdanyliv
Feb 4, 2022
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sgashua
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DatabaseContext
registered as scoped, so it will be disposed at end of the request automatically.