예제 #1
0
 private object CallInvoke(MethodBase method, object[] args)
 {
     try
     {
         return(ProfilerInterceptor.GuardExternal(() => SecuredReflectionMethods.Invoke(method, this.instance, args)));
     }
     catch (TargetInvocationException targetInvocationException)
     {
         if (this.RethrowOriginalOnCallMethod && targetInvocationException.InnerException != null)
         {
             throw targetInvocationException.InnerException;
         }
         else
         {
             throw;
         }
     }
 }
예제 #2
0
 private object CallInvoke(MethodBase method, object[] args)
 {
     return(ProfilerInterceptor.GuardExternal(() => SecuredReflectionMethods.Invoke(method, this.instance, args)));
 }