feat(*): update TapDB config, update doc
parent
93053a71f5
commit
2ca1681c8c
|
@ -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);
|
||||
```
|
||||
|
||||
|
|
|
@ -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.
Binary file not shown.
Binary file not shown.
|
@ -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();
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue