Bolt.RequestBus : More On Events – Part 5

This is fifth part of the series. In our previous post we discuss about filters and how to use them in your application. If you don’t know what Bolt.RequestBus is please read the first part of this series. We did discuss about events in part 3 of this series. In this post we gonna find out about default events raised by the library and how you can use them instead of publishing events by yourself from RequestHandler. Continue reading

Advertisements

Bolt.RequestBus : How to use Filters – Part 4

This is fourth part of the series. In our previous post we discuss about how to publish and handle events for a request. If you don’t know what Bolt.RequestBus is please read the first part of this series. In this part I am trying to show how you can use filter in application and reduce the complexity of request handler. You can add more than one filter for any request. Filter may not always necessary but in some cases you might find this technique very helpful. This will help to reduce the complexity of Handler as you can divide the responsibility to filters. Generally filters more appropriate for Query when you reading data from system, but you need to read from different sources or do complex calculation on result. Continue reading

Journey to CQS – Part 1

I have been using Command–query separation (CQS) concept in most of my projects for almost a year. So far I am very happy with the outcome. My projects are more manageable, Flexible to changes and none of the classes showing any tendency to become large class with too many methods and dependencies. So I decided to share the way I am applying CQS in my projects. Main concept of CQS is to separate the write (Command) and read (Query) part of your application. Continue reading