public override Task After(DynamicProxyAfterArguments args) { args.ExceptionHandled = true; return(base.After(args)); }
public override Task After(DynamicProxyAfterArguments args) => OnAfter(args.Exception);
/// <summary> /// 方法执行之后 /// </summary> /// <param name="args"></param> public virtual void After(DynamicProxyAfterArguments args) { }
/// <summary> /// 方法执行之前 /// </summary> /// <param name="args"></param> /// <returns></returns> public virtual Task After(DynamicProxyAfterArguments args) => Task.FromResult(false);
public override Task After(DynamicProxyAfterArguments args) { Console.WriteLine($"{args.MemberInfo.Name} After"); return(base.After(args)); }