12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- {
- /* asp.net core 原始web服务配置 */
- "server": {
- //"urls": [ "http://localhost:5001", "http://127.0.0.1:5002", "http://*:5003" ]
- "urls": [ "http://localhost:7777" ]
- },
- "Logging": {
- "LogLevel": {
- "Default": "Warning"
- }
- },
- "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",
- /* (x.2) conn config */
- /* 服务端 host地址。例如: "127.0.0.1"、"sers.com" */
- "host": "127.0.0.1",
- /* 服务端 监听端口号。例如: 4501 */
- "port": 4501,
- /* 连接秘钥,用以验证连接安全性。服务端和客户端必须一致 */
- "secretKey": "SersCL"
- }
- ]
- },
- /* LocalApiService 配置,可不指定 */
- "LocalApiService": {
- /* 后台服务的线程个数(单位个,默认0,代表不开启服务) */
- "workThreadCount": 4,
- /* Api加载器配置 */
- "ApiLoaders": [
- {
- /* 加载器的类名,可为 Sers.ApiLoader.Ss.ApiLoader 、 Sers.ApiLoader.WebApi21.ApiLoader 等。若不指定则默认为"Sers.ApiLoader.Ss.ApiLoader" */
- "loader_className": "Sers.ApiLoader.WebApi21.ApiLoader",
- /* 在此Assembly中查找服务(如 Sers.Core.Station.dll 、Sers.ApiLoader.WebApi21.dll) */
- "loader_assemblyFile": "Sers.ApiLoader.WebApi21.dll",
- /* 在此Assembly中查找服务(如 App.StationDemo.Station)(assembly、assemblyFile、assemblyName 指定任一即可) */
- "assemblyName": "App.WebApi21.Station"
- }
- ]
- },
- /* ServiceStation配置,可不指定 */
- "ServiceStation": {
- /* serviceStation站点信息 */
- "serviceStationInfo": {
- "serviceStationName": "WebApi21"
- }
- }
- },
- /* Vit工具配置,可不指定 */
- "Vit": {
- /* 日志配置,可不指定 */
- "Logger": {
- /* print the log to console. default:false */
- "PrintToConsole": true
- }
- }
- }
|