I have already done the following:
- Register an instance of my Logger in unity via a ILogger interface.
- Created an interface, ILoggableObject, that has a method, Hook(ILogger logger), to inject my logger.
I would like to accomplish this:
Everytime I ask for any resolution from unity, if that object implements ILoggableObject, automatically inject the ILogger interface via the Hook method.
I think this is possible via interception or policies?
Any help would be awesome.