Sync README files from source repository [skip ci]
This commit is contained in:
@@ -57,7 +57,6 @@ Hướng dẫn chi tiết để migrate code client từ ProxyPool (legacy) sang
|
|||||||
"Protocol": "Grpc",
|
"Protocol": "Grpc",
|
||||||
"Host": "10.9.3.70",
|
"Host": "10.9.3.70",
|
||||||
"Port": 5001,
|
"Port": 5001,
|
||||||
"DefaultAccessToken": "your-access-token",
|
|
||||||
"UseSecureConnection": false,
|
"UseSecureConnection": false,
|
||||||
"TimeoutMs": 30000,
|
"TimeoutMs": 30000,
|
||||||
"EnableClientCache": true,
|
"EnableClientCache": true,
|
||||||
@@ -71,7 +70,7 @@ Hướng dẫn chi tiết để migrate code client từ ProxyPool (legacy) sang
|
|||||||
|
|
||||||
**Lưu ý:**
|
**Lưu ý:**
|
||||||
- SmartPool sử dụng port khác (5001 cho gRPC, 5000 cho HTTP)
|
- SmartPool sử dụng port khác (5001 cho gRPC, 5000 cho HTTP)
|
||||||
- Cần cấu hình `DefaultAccessToken` nếu muốn tự động inject vào requests
|
- Cần cấu hình `ConfigManager:AccessToken` nếu muốn tự động inject vào requests
|
||||||
|
|
||||||
### Step 3: Cập Nhật Service Registration
|
### Step 3: Cập Nhật Service Registration
|
||||||
|
|
||||||
@@ -99,7 +98,6 @@ services.AddSmartPoolClient(configuration, options =>
|
|||||||
options.Protocol = SmartPoolProtocol.Grpc;
|
options.Protocol = SmartPoolProtocol.Grpc;
|
||||||
options.Host = "10.9.3.70";
|
options.Host = "10.9.3.70";
|
||||||
options.Port = 5001;
|
options.Port = 5001;
|
||||||
options.DefaultAccessToken = "your-access-token";
|
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user