Skip to content
This repository was archived by the owner on Apr 2, 2023. It is now read-only.

Commit be754d3

Browse files
committed
Update README.md
1 parent 6423d7c commit be754d3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@
88

99
方法二:克隆本git仓库,此项目是使用Visual Studio Code for Mac IDE开发的,其中SDK文件夹下是封装的源码,SDK.Test文件夹下是封装的源码的UT.
1010

11+
从1.1.1版本开始,HTTP请求开始改用IHttpClientFactory实现高效的HTTP连接管理,并且基于Task实现了异步方法。
12+
在ASP.NETCore项目内可通过依赖注入方式使用:
13+
1.在Startup.cs的ConfigureServices内添加
14+
services.AddHttpClient();
15+
services.AddSingleton<IXingeApp, XingeApp.XingeApp>();
16+
2.在你的使用的Service或Controller的构造函数内注入IXingeApp接口;
17+
18+
此外对于部分未传入AppId/AccessKey/SecretKey的方法,实现类内部通过appsettings.json读取相关配置,配置结构如下:
19+
"XingeApp": {
20+
"AppId": "000000",
21+
"AccessKey": "00000000000",
22+
"SecretKey": "0000000000000000000000"
23+
}
24+
1125
## 接口说明
1226
信鸽提供的主要推送和查询接口包括3种
1327

0 commit comments

Comments
 (0)