Пример #1
0
 public static object first_Argument(this MethodInterceptionArgs args)
 {
     //return args.Arguments.first();  //returns null;
     if (args.has_Arguments())
     {
         return(args.Arguments[0]);
     }
     return(null);
 }
Пример #2
0
 public override void OnInvoke(MethodInterceptionArgs args)
 {
     if (args.has_Arguments())
     {
         args.argument <UserActivity>().ga_LogEntry();
     }
     else
     {
         "[LogMethod]".ga_LogEntry(args.Method.Name);
     }
     args.Proceed();
 }
Пример #3
0
 public override void OnInvoke(MethodInterceptionArgs args)
 {
     if (args.has_Arguments())
     {
         args.argument<UserActivity>().ga_LogEntry();
     }
     else
         "[LogMethod]".ga_LogEntry(args.Method.Name);
     args.Proceed();
 }