Add support for queries via mediator. This would ensure the decoupling of read only actions while, via middleware, allowing the support of transversal cache or logging, as an example.
This could be implemented using an IQuery<TResult>, requested via IMediator.QueryAsync and handled with an IQueryHandler.
Add support for queries via mediator. This would ensure the decoupling of read only actions while, via middleware, allowing the support of transversal cache or logging, as an example.
This could be implemented using an
IQuery<TResult>
, requested viaIMediator.QueryAsync
and handled with anIQueryHandler
.