You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I have a question regarding the usage of dispatching mediator request. I know that its not recommended to dispatch a request within a handler, but how about calling mulitple handlers at controller level. thanks!
e.g
class Controller {
method() {
var result1 = await mediator.Send();
var result2 = await mediator.Send()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there, I have a question regarding the usage of dispatching mediator request. I know that its not recommended to dispatch a request within a handler, but how about calling mulitple handlers at controller level. thanks!
e.g
class Controller {
method() {
var result1 = await mediator.Send();
var result2 = await mediator.Send()
return new {
a = result1,
b = result2
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions