コード例 #1
0
        public IMethodReturn Invoke(IMethodInvocation input, GetNextInterceptionBehaviorDelegate getNext)
        {
            BeforeExecutingEvent?.Invoke(input);
            var result = getNext()(input, getNext);

            AfterExecutingEvent?.Invoke(input, result);
            return(result);
        }
コード例 #2
0
 public override void OnEntry(MethodExecutionArgs args)
 {
     BeforeExecutingEvent?.Invoke(args);
     base.OnEntry(args);
 }