appsettings.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "Sers": {
  3. /* 通讯层配置 */
  4. "CL": {
  5. /* one conn is one channel.can be multiable */
  6. "Client": [
  7. {
  8. // Socket.Iocp
  9. /* (x.1) type - Iocp */
  10. /* the class of builder in assemblyFile */
  11. "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
  12. /* 通信模式(默认值:Simple)。可为 Simple、Timer、ThreadWait */
  13. //"mode": "ThreadWait",
  14. /* (x.2) conn config */
  15. /* 服务端 host地址。例如: "127.0.0.1"、"sers.cloud" */
  16. "host": "127.0.0.1",
  17. /* 服务端 监听端口号。例如: 4501 */
  18. "port": 4501,
  19. /* 连接秘钥,用以验证连接安全性。服务端和客户端必须一致 */
  20. "secretKey": "SersCL"
  21. }
  22. ]
  23. },
  24. /* LocalApiService 配置,可不指定 */
  25. "LocalApiService": {
  26. /* 后台服务的线程个数(单位个,默认0,代表不开启服务) */
  27. "workThreadCount": 16
  28. }
  29. },
  30. /* Vit工具配置,可不指定 */
  31. "Vit": {
  32. /* 日志配置,可不指定 */
  33. "Logger": {
  34. /* print the log to console. default:false */
  35. "PrintToConsole": true
  36. }
  37. },
  38. "Logging": {
  39. "LogLevel": {
  40. "Default": "Warning"
  41. }
  42. },
  43. "AllowedHosts": "*"
  44. }