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

Commit 698efc8

Browse files
committed
Update README.md
1 parent be754d3 commit 698efc8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,27 @@
44
[信鸽](http://xg.qq.com) 是腾讯云提供的一款支持**百亿级**消息的移动App推送平台,开发者可以调用C# SDK访问信鸽推送服务。
55

66
## 引用SDK
7-
方法一:请到[信鸽官网](http://xg.qq.com/xg/ctr_index/download)下载最新版本的包,使用时添加XingeApp.dll依赖即可。
8-
9-
方法二:克隆本git仓库,此项目是使用Visual Studio Code for Mac IDE开发的,其中SDK文件夹下是封装的源码,SDK.Test文件夹下是封装的源码的UT.
7+
直接安装nuget包:[XingeApp](https://www.nuget.org/packages/XingeApp)
108

119
从1.1.1版本开始,HTTP请求开始改用IHttpClientFactory实现高效的HTTP连接管理,并且基于Task实现了异步方法。
10+
1211
在ASP.NETCore项目内可通过依赖注入方式使用:
12+
1313
1.在Startup.cs的ConfigureServices内添加
14+
```C#
1415
services.AddHttpClient();
1516
services.AddSingleton<IXingeApp, XingeApp.XingeApp>();
17+
```
1618
2.在你的使用的Service或Controller的构造函数内注入IXingeApp接口;
1719

1820
此外对于部分未传入AppId/AccessKey/SecretKey的方法,实现类内部通过appsettings.json读取相关配置,配置结构如下:
21+
```json
1922
"XingeApp": {
2023
"AppId": "000000",
2124
"AccessKey": "00000000000",
2225
"SecretKey": "0000000000000000000000"
2326
}
24-
27+
```
2528
## 接口说明
2629
信鸽提供的主要推送和查询接口包括3种
2730

0 commit comments

Comments
 (0)