How do I create scoped events?

69 Views Asked by At

I am about to migrate a cab application created with smart client software factory from in 2009. Everything seemed to be straight until the event aggregator. I need to have code like this:

//publish in current unity conainer
customerInfoSavedEvent.Publish(payload, PubliscationScope.CurrentContainer);

//publish in all unity conainers in hierarchy 
customerInfoSavedEvent.Publish(payload, PubliscationScope.GlobalContainer);

Other suggestions outside this are welcome. The goal is to retain the events system in the workitem infrastructure of cab/scsf.

0

There are 0 best solutions below