simplesoft-pt / Mediator

Small .NET library that helps with the implementation of mediator pattern for commands, events and queries
MIT License
41 stars 9 forks source link

Support queries #4

Closed gravity00 closed 7 years ago

gravity00 commented 7 years ago

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.