public void Handle(SomethingCreatedEvent e) { if (e.ActCode == "SOME_VALUE") { return; } else { // insert real function body here } }