12345678910111213141516171819202122232425262728293031323334353637383940 |
- {
- "Sers": {
- /* 通讯层配置 */
- "CL": {
- /* one conn is one channel.can be multiable */
- "Client": [
- {
- // Socket.Iocp
- /* (x.1) type - Iocp */
- /* the class of builder in assemblyFile */
- "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
- /* 通信模式。可为 "Simple" "Timer" "SpinWait"(默认) */
- //"mode": "Timer",
- /* (x.2) conn config */
- /* 服务端 host地址。例如: "127.0.0.1"、"sers.cloud" */
- "host": "127.0.0.1",
- /* 服务端 监听端口号。例如: 4501 */
- "port": 4501,
- /* 连接秘钥,用以验证连接安全性。服务端和客户端必须一致 */
- "secretKey": "SersCL"
- }
- ]
- },
- /* LocalApiService 配置,可不指定 */
- "LocalApiService": {
- /* 后台服务的线程个数(单位个,默认0,代表不开启服务) */
- "workThreadCount": 16
- }
- },
- "Logging": {
- "LogLevel": {
- "Default": "Warning"
- }
- },
- "AllowedHosts": "*"
- }
|