Skip to main content

Can I write code and register it in a way that it will fire anytime a client event (more speficially, one from one of the processes I care about) is completed?  I thought this might be possible with the Event Bus.


Example psuedo code in a class I'd write:


OnClientEventCompleted(ClientEvenEventArgs e)


   if(e.ProcessName == myProcessName) {   // do some custom work }


 

Yes, you can do it with the event bus.  There is not one OnClientEventCompleted that fires for all client events.  Instead, each event has an OnEventCompleted that fires and you must register for each one you want to receive.


Thanks.


Can you point me to the steps or classes involved in building a solution like this?


i.e. 1. Build event receiver based on this class/interface.  2. Use this code to find all your client events in your process and do the registration.


Or can you point me to a sample.  All I can find is the OCS event bus example in the blackmarket which didn't seem to help.


Reply