This project is read-only.

A CancellationEventHandler

Topics: Feature Request
Jan 26, 2007 at 10:40 PM
It seems you guys have set up a fairly robust event cancellation scheme so far, allowing for more flexible "error" handling than the basic try{}catch{} setup. I think it would be awesome if you took that idea a step further and added a CancellationEventHandler delegate that would have a CancellationEventArgs property. The property could contain useful information like a string saying the reason why the method was cancelled, and perhaps the object that caused the cancellation. (This idea was partially taken from Chapter 7 "Let the Rules rule" in "Applying Domain Driven Design And Patterns" Nilsson 2006)

The benefits of this would allow us to create an MVP scheme where we can can choose at any point to fail silently or loudly, and we can make this decision at runtime if need be.
Jan 27, 2007 at 3:04 PM
Sounds very nice.

Gilligan, would you like to be part of the team and help us out?

Bernardo Heynemann
Jan 29, 2007 at 1:41 PM
Part of me would love to, but I do not think I can spare the time at the moment. I am already working solo on a registration program for a church competition. It's eating up all of my weekly downtime.
Jan 29, 2007 at 8:28 PM
No problem... I´ll keep in mind the suggestion. Thanks again,
Bernardo Heynemann