public IMethodReturn Invoke(IMethodInvocation input, GetNextInterceptionBehaviorDelegate getNext) { BeforeExecutingEvent?.Invoke(input); var result = getNext()(input, getNext); AfterExecutingEvent?.Invoke(input, result); return(result); }
public override void OnEntry(MethodExecutionArgs args) { BeforeExecutingEvent?.Invoke(args); base.OnEntry(args); }