CallHandler attribute on private members

Oct 20, 2011 at 8:41 PM

Hi,

I have created call handler attribute for my call handler and I want use it to detect calls on private members of my class. such as private method calls and private property access.

Is it possible?

Can you please direct me to a sample?

thanks

Oct 22, 2011 at 8:54 AM

I don't think you can get private method interception to work.  I could be wrong but I don't see how.

I think the best way to do what (I think) you want is to move the private implemenation into a separate class/interface and then inject
those helpers into your class.

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com