I have already done the following:
- Register an instance of my registrar in unity through the ILogger interface.
- Created an interface, ILoggableObject, which has a method, Hook (ILogger logger), to enter my logger.
I would like to do this:
Each time I request any permission from one, if this object implements ILoggableObject, it automatically enters the ILogger interface using the Hook method.
I think this is possible through interception or politics?
Any help would be awesome.
source
share