public override void OnInvokeHandler(EventActionInterceptionArgs args)
        {
            var instance = (IEventActionWithoutArgumentsAspect)args.Instance;

            instance.Values.Add(AspectJoinPoints.OnInvoke);
            args.ProceedInvokeHandler();
        }
        public override void OnInvokeHandler(EventActionInterceptionArgs <List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints> > args)
        {
            var instance = (IEventActionWith4ArgumentsAspect)args.Instance;

            instance.Values.Add(AspectJoinPoints.OnInvoke);
            args.Arg1.Add(AspectJoinPoints.OnInvoke);
            args.Arg2.Add(AspectJoinPoints.OnInvoke);
            args.Arg3.Add(AspectJoinPoints.OnInvoke);
            args.Arg4.Add(AspectJoinPoints.OnInvoke);
            args.ProceedInvokeHandler();
        }
Пример #3
0
 public override void OnInvokeHandler(EventActionInterceptionArgs <string> args)
 {
     Console.WriteLine("OnInvokeHandler of EventInterceptionAspect");
     args.ProceedInvokeHandler();
 }
 public virtual void OnInvokeHandler(EventActionInterceptionArgs args)
 {
     args.ProceedInvokeHandler();
 }
        public override void OnInvokeHandler(EventActionInterceptionArgs args)
        {
            var instance = (IEventActionWithoutArgumentsAspect)args.Instance;

            instance.Values.Add(AspectJoinPoints.OnInvoke);
            args.ProceedInvokeHandler();
        }
 public override void OnInvokeHandler(EventActionInterceptionArgs <string> args)
 {
     Console.WriteLine("OnInvokeHandler {0}", args.Event.Name);
     Console.WriteLine("Arg1: {0}", args.Arg1);
     args.ProceedInvokeHandler();
 }