Sep 16, 2012, 3:01 AM
[CLOSED] How to recognize a DirectMethod in runtime?
Hi,
Could you please suggest an inexpensive way to determine if a method is Direct on the server? I need that for cases where control of flow execution goes into the code injected into a method context with post-compilation tools like PostSharp. For example, I'm able to detect DirectEvents by examining the method arguments - DirectEventArgs parameter is present then. With DirectMethods, there's apparently no such luxury. I'm thinking of enlisting the help of Reflection but looking for your recommendations.
Could you please suggest an inexpensive way to determine if a method is Direct on the server? I need that for cases where control of flow execution goes into the code injected into a method context with post-compilation tools like PostSharp. For example, I'm able to detect DirectEvents by examining the method arguments - DirectEventArgs parameter is present then. With DirectMethods, there's apparently no such luxury. I'm thinking of enlisting the help of Reflection but looking for your recommendations.
Last edited by Daniil; Sep 17, 2012 at 4:20 PM.
Reason: [CLOSED]