Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to Unity. I have a Behavior I would like to apply to all calls to a given namespace... A-la MyCompany.BusinessLogic

I have a container and have added the Interception extension

container.AddNewExtension<interception>();

And have a behavior which implements IInterceptionBehavior called LoggingBehavior.

What I have not been able to locate is how to wire these two together for every method call to anything in the MyCompany.BusinessLogic namespace.

I've figured out how to create decorations and apply the decoration to individual methods on a given interface, but not everything at once

Thanks,
Kevon
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900