示例#1
0
 public override Task Before(FreeSql.DynamicProxyBeforeArguments args)
 {
     args.ReturnValue = new UserInfo {
         Id = "ResultId", Remark = $"{args.MemberInfo.Name} HttpGet {_url}"
     };
     return(base.Before(args));
 }
示例#2
0
 public override Task Before(FreeSql.DynamicProxyBeforeArguments args)
 {
     if (args.Parameters.ContainsKey("key"))
     {
         args.Parameters["key"] = "Newkey";
     }
     return(base.Before(args));
 }
示例#3
0
 public override Task Before(FreeSql.DynamicProxyBeforeArguments args)
 {
     this.Key         = "213234234";
     args.ReturnValue = $"{args.MemberInfo.Name} Before Changed";
     return(base.Before(args));
 }
示例#4
0
 public override Task Before(FreeSql.DynamicProxyBeforeArguments args)
 {
     Console.WriteLine($"{args.MemberInfo.Name} HttpPost {_url} Body {JsonConvert.SerializeObject(args.Parameters)}");
     return(base.Before(args));
 }
示例#5
0
 public override Task Before(DynamicProxyBeforeArguments args) => OnBefore(_uowManager);
示例#6
0
 /// <summary>
 /// 方法执行之前
 /// </summary>
 /// <param name="args"></param>
 /// <returns></returns>
 public virtual Task Before(DynamicProxyBeforeArguments args) => Task.FromResult(false);
示例#7
0
 /// <summary>
 /// 方法执行之前
 /// </summary>
 /// <param name="args"></param>
 public virtual void Before(DynamicProxyBeforeArguments args)
 {
 }