Custom Event uses the same paradigm, there is an “OnCustomEvent” method that you can overload and is called when ever you have a Custom Event Task. The name of the event is passed along with the event.
I actually cover a lot of what you’re trying to do in my Chain Lightning Tutorial: