If I have an abstract base class CommandHandler<T>, and I want to register a decorator class LoggingCommandHandler<T> such that every class that implements the base class is resolved with the decorator class, how do I tell Grace to achieve such a thing?
How about if I want to add another decorator class ValidatingCommandHandler<T> and I want the order of the decorator classes to be preserved? i.e. always resolve as:
LoggingCommandHandler
--> ValidatingCommandHandler
----> ConcreteCommandHandler
If I have an abstract base class
CommandHandler<T>, and I want to register a decorator classLoggingCommandHandler<T>such that every class that implements the base class is resolved with the decorator class, how do I tell Grace to achieve such a thing?How about if I want to add another decorator class
ValidatingCommandHandler<T>and I want the order of the decorator classes to be preserved? i.e. always resolve as: