Repository navigation
Replies: 1 comment
|
If that's what you need to do then I don't see an issue with it.. you could also create a specific command that builds the dto with one request.. var result = await _mediator.Send(new CreateMyDtoRequest());
return result; |
0 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.
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
}
}
}
All reactions