Identity calling class?

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
 
J

julien

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top