How to return a value when using event Pub/sub?

Topics: CAB & Smart Client Software Factory
Jul 25, 2006 at 12:35 AM
originally posted by: ching100

When I use event broker of CAB by publish/subscribe,
how can I return a value when fire a new event?

For example, when I publish OnSaveDate(), the event subscriber will receive the event and process SaveData(), but how can I know whether SaveData() successful or not?

Thank you.
Jul 25, 2006 at 5:10 AM
originally posted by: askew

You just need another EventArgs<T> class in your Shell's Infrastructure, like an 'EditableEventArgs<T>'.
The link above is to a post that describes doing this for an 'OnCloseQuery' event fired from the Shell.
Jul 29, 2006 at 5:33 AM
originally posted by: ching100

Thanks for your help. I solved this problem.