feat(*): update TapDB config, update doc

xiaoyi 2021-05-08 16:39:46 +08:00
parent 93053a71f5
commit 2ca1681c8c
7 changed files with 7 additions and 8 deletions

View File

@ -19,12 +19,12 @@
* TapConfig Refactor Constructor
```c#
//建议使用以下 TapConfig 构造方法进行初始化
var config = new TapConfig.TapConfigBuilder()
var config = new TapConfig.Builder()
.ClientID("client_id")
.ClientSecret("client_secret")
.RegionType(RegionType.CN)
.TapDBConfig(true,"channel", "gameVersion")
.Builder();
.TapDBConfig(true,"channel", "gameVersion",true)
.ConfigBuilder();
TapBootstrap.Init(config);
```

View File

@ -1,5 +1,4 @@
# 使用 TapTap.Bootstrap
## 使用前提
使用 TapTap.Bootstrap 前提是必须依赖以下库:
@ -23,7 +22,7 @@ var config = new TapConfig.TapConfigBuilder()
.ClientID("client_id")
.ClientSecret("client_secret")
.RegionType(RegionType.CN)
.TapDBConfig(true,"channel", "gameVersion")
.TapDBConfig(true,"channel","gameVersion",true)
.Builder();
```
关闭 TapDB
@ -32,7 +31,7 @@ var config = new TapConfig.TapConfigBuilder()
.ClientID("client_id")
.ClientSecret("client_secret")
.RegionType(RegionType.CN)
//# .TapDBConfig(false,null,null)
//# .TapDBConfig(false,null,null,false)
.EnableTapDB(false)
.Builder();
```

Binary file not shown.

Binary file not shown.

View File

@ -23,7 +23,7 @@ var config = new TapConfig.TapConfigBuilder()
.ClientID("client_id")
.ClientSecret("client_secret")
.RegionType(RegionType.CN)
.TapDBConfig(true,"channel", "gameVersion")
.TapDBConfig(true,"channel","gameVersion",true)
.Builder();
```
关闭 TapDB
@ -32,7 +32,7 @@ var config = new TapConfig.TapConfigBuilder()
.ClientID("client_id")
.ClientSecret("client_secret")
.RegionType(RegionType.CN)
//# .TapDBConfig(false,null,null)
//# .TapDBConfig(false,null,null,false)
.EnableTapDB(false)
.Builder();
```