We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如题,需要如文章:1.1 最简单的Get请求#
public interface MyWebApi : IDisposable { // GET http://www.mywebapi.com/webapi/user?account=laojiu [HttpGet("http://www.mywebapi.com/webapi/user")] ITask GetUserByAccountAsync(string account); }
var myWebApi = HttpApiClient.Create(); var userStr = await myWebApi.GetUserByAccountAsync("laojiu"); myWebApi.Dispose();
来调用此库,但找不到 HttpApiClient.Create() ,请问 HttpApiClient.Create() 还支持吗? 盼复,谢谢!
The text was updated successfully, but these errors were encountered:
你好,WebApiClientCore仅支持依赖注入环境下使用,老版本WebApiClient.Jit支持这种形式的使用,详情参考文档 https://webapiclient.github.io 新老版本文档都包含
WebApiClientCore
WebApiClient.Jit
Sorry, something went wrong.
No branches or pull requests
如题,需要如文章:1.1 最简单的Get请求#
public interface MyWebApi : IDisposable
{
// GET http://www.mywebapi.com/webapi/user?account=laojiu
[HttpGet("http://www.mywebapi.com/webapi/user")]
ITask GetUserByAccountAsync(string account);
}
var myWebApi = HttpApiClient.Create();
var userStr = await myWebApi.GetUserByAccountAsync("laojiu");
myWebApi.Dispose();
来调用此库,但找不到 HttpApiClient.Create() ,请问 HttpApiClient.Create() 还支持吗?
盼复,谢谢!
The text was updated successfully, but these errors were encountered: