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