appsettings.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "Logging": {
  3. "LogLevel": {
  4. "Default": "Warning"
  5. }
  6. },
  7. "Sers": {
  8. /* 通讯层配置 */
  9. "CL": {
  10. /* one conn is one channel.can be multiable */
  11. "Client": [
  12. {
  13. // Socket.Iocp
  14. /* (x.1) type - Iocp */
  15. /* the class of builder in assemblyFile */
  16. "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
  17. /* (x.2) conn config */
  18. /* 服务端 host地址。例如: "127.0.0.1"、"sersms.com" */
  19. "host": "127.0.0.1",
  20. /* 服务端 监听端口号。例如: 4501 */
  21. "port": 4501,
  22. /* 连接秘钥,用以验证连接安全性。服务端和客户端必须一致 */
  23. "secretKey": "SersCL"
  24. }
  25. ]
  26. },
  27. /* LocalApiService 配置,可不指定 */
  28. "LocalApiService": {
  29. /* 后台服务的线程个数(单位个,默认0,代表不开启服务) */
  30. "workThreadCount": 4,
  31. /* Api加载器配置 */
  32. "ApiLoaders": [
  33. {
  34. /* 加载器的类名,可为 Sers.ApiLoader.Ss.ApiLoader 、 Sers.ApiLoader.WebApi21.ApiLoader 等。若不指定则默认为"Sers.ApiLoader.Ss.ApiLoader" */
  35. "loader_className": "Sers.ApiLoader.WebApi21.ApiLoader",
  36. /* 在此Assembly中查找服务(如 Sers.Core.Station.dll 、Sers.ApiLoader.WebApi21.dll) */
  37. "loader_assemblyFile": "Sers.ApiLoader.WebApi21.dll",
  38. /* 在此Assembly中查找服务(如 App.StationDemo.Station)(assembly、assemblyFile、assemblyName 指定任一即可) */
  39. "assemblyName": "App.WebApi21.Station"
  40. }
  41. ]
  42. },
  43. /* ServiceStation配置,可不指定 */
  44. "ServiceStation": {
  45. /* serviceStation站点信息 */
  46. "serviceStationInfo": {
  47. "serviceStationName": "WebApi21"
  48. }
  49. }
  50. },
  51. /* Vit工具配置,可不指定 */
  52. "Vit": {
  53. /* 日志配置,可不指定 */
  54. "Logger": {
  55. /* print the log to console. default:false */
  56. "PrintToConsole": true
  57. }
  58. },
  59. /* asp.net core 原始web服务配置 */
  60. "server": {
  61. "urls": [ "http://localhost:5001", "http://127.0.0.1:5002", "http://*:5003" ]
  62. }
  63. }