Why use AdditionalInterface?

Jul 7, 2010 at 6:38 AM

Can someone explain to me what is the purpose of the additional interfaces when specifying interception?  An example would be great.


Jul 7, 2010 at 6:34 PM

It's there in case you have a behavior that can handle any arbitrary interface you throw at it. For example, if you wanted to implement a mock object framework. The behavior cannot have compiled into it the list of interfaces it can support.

It's a highly advanced case and if you don't know why you'd use it, you don't need it and can ignore it. :-)


Jul 8, 2010 at 12:27 AM

Thanks ctavares.  I'd still like to know what scenario it could address.  It really frustrates me not knowing.  Could you give an example to enlighten me? 


Jul 8, 2010 at 5:34 AM

I thought I did - a mock object framework. We actually had an internal experimental version of Moq built on top of Unity Interception instead of Castle Dynamic proxy. Without this option that would have been impossible.