Identity calling class?

  • Thread starter Thread starter Ole Hanson
  • Start date Start date
O

Ole Hanson

Hi

Having a system where I'm being called from clients (applications), I need
to identity the calling method and class as this class is decorated with
custom attributes I need to perform some logic dependant on this custom
attribute.

How do I in robust manner identify the calling methods class? The callstack
is different each time meaning I unfortunately can't use a specific fixed
stackframe index...

Thanks!

/Ole
 
Ole Hanson a écrit :
Never mind. Figured it out using an iteration of the stacktrace...

Hello,
could you give some details? I'm running into the same problem. I would
like to know the class and method calling a method. How can you access
the stacktrace?

Thank you
Julien
 
Back
Top