public override void OnRemoveHandler(EventFunctionInterceptionArgs <List <AspectJoinPoints> > args) { var instance = (IEventFunctionWithoutArgumentsAspect)args.Instance; instance.Values.Add(AspectJoinPoints.OnRemoveEvent); args.ProceedRemoveHandler(); }
public override void OnAddHandler(EventFunctionInterceptionArgs <List <AspectJoinPoints>, string> args) { var instance = (IEventFunctionWith1ArgumentAspect)args.Instance; instance.Values.Add(AspectJoinPoints.OnAddEvent); args.ProceedAddHandler(); }
public override void OnInvokeHandler(EventFunctionInterceptionArgs <List <AspectJoinPoints>, List <AspectJoinPoints>, string> args) { var instance = (IEventFunctionWith2ArgumentsAspect)args.Instance; instance.Values.Add(AspectJoinPoints.OnInvoke); args.Arg1.Add(AspectJoinPoints.OnInvoke); args.Arg2.Add(AspectJoinPoints.OnInvoke); args.ProceedInvokeHandler(); }
public override void OnInvokeHandler(EventFunctionInterceptionArgs <string, string> args) { }
public override void OnInvokeHandler(EventFunctionInterceptionArgs <bool> args) { }
public override void OnAddHandler(EventFunctionInterceptionArgs <string> args) { Console.WriteLine("OnAddHandler {0}", args.Event.Name); args.ProceedAddHandler(); }
public override void OnInvokeHandler(EventFunctionInterceptionArgs <string> args) { Console.WriteLine("OnInvokeHandler {0}", args.Event.Name); args.ProceedInvokeHandler(); Console.WriteLine("ReturnValue {0}", args.ReturnValue); }