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