notify events to subclasses with OnActivated/OnPassivating/OnPassivated.