Generic Command Handler


I have a a question concerning Command Handlers. Is it currently possible, to use base classes or interfaces that are implemented by various commands and get all subclasses intercepted by the same @CommandHandler? Thank you very much in advance.

1 Like

Hey @chrisa50,

I took some time to write a small test showing it to give you a complete answer!

In short, you can use a base class or interface for that BUT the Framework will always call the most specific @CommandHandler you have.

You can verify a really small sample here, specially on the tests that were written.

Hope it clarifies things for you.