public override void OnAddHandler(EventActionInterceptionArgs <List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints> > args)
        {
            var instance = (IEventActionWith8ArgumentsAspect)args.Instance;

            instance.Values.Add(AspectJoinPoints.OnAddEvent);
            args.ProceedAddHandler();
        }
        public override void OnRemoveHandler(EventActionInterceptionArgs args)
        {
            var instance = (IEventActionWithoutArgumentsAspect)args.Instance;

            instance.Values.Add(AspectJoinPoints.OnRemoveEvent);
            args.ProceedRemoveHandler();
        }
        public override void OnRemoveHandler(EventActionInterceptionArgs args)
        {
            var instance = (IEventActionWithoutArgumentsAspect)args.Instance;

            instance.Values.Add(AspectJoinPoints.OnRemoveEvent);
            args.ProceedRemoveHandler();
        }
        public override void OnInvokeHandler(EventActionInterceptionArgs <List <AspectJoinPoints> > args)
        {
            var instance = (IEventActionWith1ArgumentAspect)args.Instance;

            instance.Values.Add(AspectJoinPoints.OnInvoke);
            args.Arg1.Add(AspectJoinPoints.OnInvoke);
            args.ProceedInvokeHandler();
        }
Ejemplo n.º 5
0
        public override void OnInvokeHandler(EventActionInterceptionArgs <List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints>, List <AspectJoinPoints> > args)
        {
            var instance = (IEventActionWith5ArgumentsAspect)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.Arg5.Add(AspectJoinPoints.OnInvoke);
            args.InvokeHanlder();
        }
Ejemplo n.º 6
0
 public override void OnAddHandler(EventActionInterceptionArgs <string> args)
 {
     Console.WriteLine("OnAddHandler of EventInterceptionAspect");
     args.ProceedAddHandler();
 }
Ejemplo n.º 7
0
 public new void OnRemoveHandler(EventActionInterceptionArgs args, string s)
 {
     base.OnRemoveHandler(args);
 }
Ejemplo n.º 8
0
            public new string OnRemoveHandler(EventActionInterceptionArgs args)
            {
                base.OnRemoveHandler(args);

                return(string.Empty);
            }
Ejemplo n.º 9
0
 public override void OnInvokeHandler(EventActionInterceptionArgs args)
 {
 }
Ejemplo n.º 10
0
 public virtual void OnRemoveHandler(EventActionInterceptionArgs args)
 {
     args.ProceedRemoveHandler();
 }
Ejemplo n.º 11
0
 public virtual void OnInvokeHandler(EventActionInterceptionArgs args)
 {
     args.ProceedInvokeHandler();
 }
 public override void OnAddHandler(EventActionInterceptionArgs <string> args)
 {
     Console.WriteLine("OnAddHandler {0}", args.Event.Name);
     args.ProceedAddHandler();
 }