public override void OnException(FunctionExecutionArgs <List <AspectJoinPoints>, string> args)
        {
            var ex = args.Exception;

            if (ex.IsNotNull() && ex.GetType() == typeof(Exception) && ex.Message.Equals("InMethodException"))
            {
                args.Arg1.Add(AspectJoinPoints.OnException);
                args.AddToReturnValue(AspectJoinPoints.InMethod);
                args.AddToReturnValue(AspectJoinPoints.OnException);
            }

            base.OnException(args);
        }
        public override void OnException(FunctionExecutionArgs <int, int, int, int, int, int, int, int, string> args)
        {
            var ex = args.Exception;

            if (ex.IsNotNull() && ex.GetType() == typeof(Exception) && ex.Message.Equals("InMethodException"))
            {
                args.Arg8 = args.Arg7 = args.Arg6 = args.Arg5 = args.Arg4 = args.Arg3 = args.Arg2 = args.Arg1 += (int)AspectJoinPoints.OnException;
                args.AddToReturnValue(AspectJoinPoints.InMethod);
                args.AddToReturnValue(AspectJoinPoints.OnException);
            }

            base.OnException(args);
        }
 public override void OnEntry(FunctionExecutionArgs <int, int, int, int, int, int, int, int, string> args)
 {
     args.FlowBehavior = FlowBehavior.Continue;
     args.Arg8         = args.Arg7 = args.Arg6 = args.Arg5 = args.Arg4 = args.Arg3 = args.Arg2 = args.Arg1 += (int)AspectJoinPoints.OnEntry;
     args.AddToReturnValue(AspectJoinPoints.OnEntry);
     base.OnEntry(args);
 }
 public override void OnEntry(FunctionExecutionArgs <List <AspectJoinPoints>, string> args)
 {
     args.FlowBehavior = FlowBehavior.Continue;
     args.Arg1.Add(AspectJoinPoints.OnEntry);
     args.AddToReturnValue(AspectJoinPoints.OnEntry);
     base.OnEntry(args);
 }
 public override void OnExit(FunctionExecutionArgs <List <AspectJoinPoints>, List <AspectJoinPoints>, string> args)
 {
     args.Arg1.Add(AspectJoinPoints.OnExit);
     args.Arg2.Add(AspectJoinPoints.OnExit);
     args.AddToReturnValue(AspectJoinPoints.OnExit);
     base.OnExit(args);
 }
 public override void OnSuccess(FunctionExecutionArgs <List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, string> args)
 {
     args.Arg1.Add(AspectJoinPoints.OnSuccess);
     args.Arg2.Add(AspectJoinPoints.OnSuccess);
     args.Arg3.Add(AspectJoinPoints.OnSuccess);
     args.Arg4.Add(AspectJoinPoints.OnSuccess);
     args.Arg5.Add(AspectJoinPoints.OnSuccess);
     args.Arg6.Add(AspectJoinPoints.OnSuccess);
     args.AddToReturnValue(AspectJoinPoints.OnSuccess);
     base.OnSuccess(args);
 }
 public override void OnExit(FunctionExecutionArgs <int, int, int, int, int, int, int, int, string> args)
 {
     args.Arg8 = args.Arg7 = args.Arg6 = args.Arg5 = args.Arg4 = args.Arg3 = args.Arg2 = args.Arg1 += (int)AspectJoinPoints.OnExit;
     args.AddToReturnValue(AspectJoinPoints.OnExit);
     base.OnExit(args);
 }
 public override void OnSuccess(FunctionExecutionArgs <int, int, int, int, int, int, int, int, string> args)
 {
     args.Arg1 = args.Arg1 + (int)AspectJoinPoints.OnSuccess;
     args.AddToReturnValue(AspectJoinPoints.OnSuccess);
     base.OnSuccess(args);
 }
Exemple #9
0
 public override void OnEntry(FunctionExecutionArgs <int, int, int, string> args)
 {
     args.Arg3 = args.Arg2 = args.Arg1 += (int)AspectJoinPoints.OnEntry;
     args.AddToReturnValue(AspectJoinPoints.OnEntry);
     base.OnEntry(args);
 }
Exemple #10
0
 public override void OnExit(FunctionExecutionArgs <string> args)
 {
     JoinPointsContainer.JoinPoints.Add(AspectJoinPoints.OnExit);
     args.AddToReturnValue(AspectJoinPoints.OnExit);
     base.OnExit(args);
 }