CAB Podcast
The Power of WorkItems, Events, and Services
A good podcast. I found to be useful in deciding when to use events vs. services. In our shop, we pretty much use the WorkItem as a use case - something Peter Provost cautions against.
We’ve described a bunch of abstract WorkItem base classes kind of organized around feature-types. So we have a SearchWorkItem that a developer inherits to implement a search feature. The workitem contains the feature-level data (overriden abstract properties) such as display name, key, etc. Generally these WorkItems are only responsible for controlling the display (e.g. putting a view in the Items collection) and holding the state.
We try to put all business logic into CAB Services which are called by the various View Controllers (we use MVC).
Post a Comment