lith 5 éve
szülő
commit
23fed9bd89
30 módosított fájl, 188 hozzáadás és 50 törlés
  1. 6 1
      dotnet/Doc/UpgradeLog/Sers2.1.1.txt
  2. 1 1
      dotnet/Sers/ApiLoader/Sers.NetcoreLoader/Sers.NetcoreLoader.csproj
  3. 1 1
      dotnet/Sers/ApiLoader/Sers.Serslot/Sers.Serslot.csproj
  4. 1 1
      dotnet/Sers/Sers.CL/Ipc/Sers.CL.Ipc.SharedMemory/Sers.CL.Ipc.SharedMemory.csproj
  5. 1 1
      dotnet/Sers/Sers.CL/Socket/Sers.CL.Socket.Iocp/Sers.CL.Socket.Iocp.csproj
  6. 1 1
      dotnet/Sers/Sers.CL/Socket/Sers.CL.Socket.ThreadWait/Sers.CL.Socket.ThreadWait.csproj
  7. 1 1
      dotnet/Sers/Sers.CL/WebSocket/Sers.CL.WebSocket/Sers.CL.WebSocket.csproj
  8. 1 1
      dotnet/Sers/Sers.CL/Zmq/FullDuplex/Sers.CL.Zmq.FullDuplex/Sers.CL.Zmq.FullDuplex.csproj
  9. 1 1
      dotnet/Sers/Sers.CL/Zmq/ThreadWait/Sers.CL.ClrZmq.ThreadWait/Sers.CL.ClrZmq.ThreadWait.csproj
  10. 1 1
      dotnet/Sers/Sers.Core/Sers.Core/Sers.Core.csproj
  11. 1 1
      dotnet/Sers/Sers.Gateway/Sers.Gateway/Sers.Gateway.csproj
  12. 1 1
      dotnet/Sers/Sers.Hardware/Sers.Hardware/Sers.Hardware.csproj
  13. 1 1
      dotnet/Sers/Sers.Ioc/Sers.Ioc/Sers.Ioc.csproj
  14. 1 0
      dotnet/Sers/Sers.ServiceCenter/Sers.ServiceCenter/ServiceCenter.cs
  15. 1 1
      dotnet/Sers/Sers.ServiceStation/Sers.ServiceStation/Sers.ServiceStation.csproj
  16. 1 1
      dotnet/StationDemo/SersLoader/Did.SersLoader.Demo/Did.SersLoader.Demo.csproj
  17. 3 1
      dotnet/StationDemo/SersLoader/Did.SersLoader.Demo/appsettings.json
  18. 1 1
      dotnet/StationDemo/SersLoader/Did.SersLoader.HelloWorld/Did.SersLoader.HelloWorld.csproj
  19. 140 12
      dotnet/StationDemo/Serslot/Did.Serslot.Demo/appsettings.json
  20. 1 1
      dotnet/Vit/Vit.Core/Vit.Core/Util/ComponentModel/Api/SsRouteAttribute.cs
  21. 1 1
      dotnet/Vit/Vit.Core/Vit.Core/Vit.Core.csproj
  22. 1 1
      dotnet/Vit/Vit.Ioc/Vit.Ioc/Vit.Ioc.csproj
  23. 1 1
      dotnet/Vit/Vit.Net.Http.FormFile/Vit.Net.Http.FormFile.csproj
  24. 1 1
      dotnet/Vit/Vit.WebHost/Vit.WebHost.csproj
  25. 1 1
      dotnet/netcore/Gateway/App.Gateway/App.Gateway.csproj
  26. 1 1
      dotnet/netcore/ServiceCenter/App.Gover.Gateway/App.Gover.Gateway.csproj
  27. 1 1
      dotnet/netcore/ServiceCenter/App.ServiceCenter/App.ServiceCenter.csproj
  28. 13 11
      dotnet/netcore/ServiceCenter/App.ServiceCenter/appsettings.json
  29. 1 1
      dotnet/netcore/Station/App.Ioc.Station/App.Ioc.Station.csproj
  30. 1 1
      dotnet/netcore/Station/App.Robot.Station/App.Robot.Station.csproj

+ 6 - 1
dotnet/Doc/UpgradeLog/Sers2.1.1.txt

@@ -72,4 +72,9 @@ SersKit
 ServiceCenter添加强制关闭服务站点功能
 
 [tag]Sers2.1.1.297
-------------------------------------------------------------------------------------------------------------------
+------------------------------------------------------------------------------------------------------------------
+
+ServiceCenter OrganizeConnection 关闭时关闭ServiceCenter
+
+[tag]Sers2.1.1.299
+------------------------------------------------------------------------------------------------------------------

+ 1 - 1
dotnet/Sers/ApiLoader/Sers.NetcoreLoader/Sers.NetcoreLoader.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Sers/ApiLoader/Sers.Serslot/Sers.Serslot.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Sers/Sers.CL/Ipc/Sers.CL.Ipc.SharedMemory/Sers.CL.Ipc.SharedMemory.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Sers/Sers.CL/Socket/Sers.CL.Socket.Iocp/Sers.CL.Socket.Iocp.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Sers/Sers.CL/Socket/Sers.CL.Socket.ThreadWait/Sers.CL.Socket.ThreadWait.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Sers/Sers.CL/WebSocket/Sers.CL.WebSocket/Sers.CL.WebSocket.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Sers/Sers.CL/Zmq/FullDuplex/Sers.CL.Zmq.FullDuplex/Sers.CL.Zmq.FullDuplex.csproj

@@ -3,7 +3,7 @@
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
   

+ 1 - 1
dotnet/Sers/Sers.CL/Zmq/ThreadWait/Sers.CL.ClrZmq.ThreadWait/Sers.CL.ClrZmq.ThreadWait.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
   

+ 1 - 1
dotnet/Sers/Sers.Core/Sers.Core/Sers.Core.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Sers/Sers.Gateway/Sers.Gateway/Sers.Gateway.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Sers/Sers.Hardware/Sers.Hardware/Sers.Hardware.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Sers/Sers.Ioc/Sers.Ioc/Sers.Ioc.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 0
dotnet/Sers/Sers.ServiceCenter/Sers.ServiceCenter/ServiceCenter.cs

@@ -112,6 +112,7 @@ namespace Sers.ServiceCenter
             }
             public void Close() 
             {
+                ServiceCenter.Instance.StopCenter();
             }
 
         }

+ 1 - 1
dotnet/Sers/Sers.ServiceStation/Sers.ServiceStation/Sers.ServiceStation.csproj

@@ -3,7 +3,7 @@
  
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/StationDemo/SersLoader/Did.SersLoader.Demo/Did.SersLoader.Demo.csproj

@@ -3,7 +3,7 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <TargetFramework>netcoreapp2.1</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>

+ 3 - 1
dotnet/StationDemo/SersLoader/Did.SersLoader.Demo/appsettings.json

@@ -190,7 +190,9 @@
           //Bearer 在调用接口前,会获取 rpcData.http.headers.Authorization(格式为 "Bearer xxxxxx"),并作为参数调用接口api_verifyAt,把返回数据放到 rpcData.user.userInfo
           "className": "Bearer",
           /* 验证at接口的地址 */
-          "api_verifyAt": "/AuthCenter/account/verifyAt"
+          "api_verifyAt": "/AuthCenter/account/verifyAt",
+          /* 验证at接口的httpMethod。(如 GET POST 可不指定) */
+          "api_httpMethod": "POST"
         },
 
         {

+ 1 - 1
dotnet/StationDemo/SersLoader/Did.SersLoader.HelloWorld/Did.SersLoader.HelloWorld.csproj

@@ -3,7 +3,7 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <TargetFramework>netcoreapp2.1</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 140 - 12
dotnet/StationDemo/Serslot/Did.Serslot.Demo/appsettings.json

@@ -2,10 +2,10 @@
 
   /* asp.net core 原始web服务配置 */
   "server": {
-    "urls": [ "http://localhost:7777" ]
+    "urls": [ "http://localhost:4513" ]
   },
 
- 
+
   "Logging": {
     "LogLevel": {
       "Default": "Warning"
@@ -45,29 +45,118 @@
       /* 后台服务的线程个数(单位个,默认0,代表不开启服务) */
       "workThreadCount": 4,
 
+      
+      /* 超时时间,若不指定则后台任务永不超时。(主动关闭超过此时间的任务,实际任务强制关闭的时间会在1倍超时时间到2倍超时时间内)。单位:ms。*/
+      //"timeout_ms": 10000,
+
+
+      /* 是否 输出本地Api的调用信息到(ApiTrace)Log文件。默认:false */
+      "PrintTrace": false,
+
+
+      /* 静态文件映射器。映射站点静态文件,可多个,可不指定 */
+      "//StaticFileMap": [
+        {
+          /* api路由前缀,例如 "/demo/ui/*" */
+          "route": "/demo/ui/*",
+          /* api描述,静态文件描述 */
+          "apiName": "demo站点静态文件",
+          /* 静态文件路径。可为相对路径或绝对路径。若未指定存在的文件夹则默认为当前目录下的wwwroot文件夹。demo:"wwwroot/demo" */
+          "staticFileDirectory": "wwwroot/demo",
+          /* 额外静态文件类型映射配置的文件路径(mappings.json),例如"wwwroot/mappings.json"。若不指定(或指定的文件不存在)则不添加额外文件类型映射配置 */
+          "ContentTypeMapFile": "mappings.json"
+        }
+      ],
+
+
+      /* 默认站点名称,可多个,可不指定 */
+      //"apiStationNames": [ "demo" ],
+
       /* Api加载器配置 */
-      "ApiLoaders": [
+      "//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中查找api加载器(如 Sers.Core.dll 、Sers.NetcoreLoader.dll 、 Sers.Serslot.dll ) */
+          //"loader_assemblyFile": "Sers.Core.dll",
+          /* 加载器的类名,可为 Sers.SersLoader.ApiLoader 、 Sers.NetcoreLoader.ApiLoader、 Sers.Serslot.ApiLoader 等。若不指定则默认为"Sers.SersLoader.ApiLoader" */
+          //"loader_className": "Sers.SersLoader.ApiLoader",
+
+
+          //(通过反射从此包中获取要加载的api)
+          /* 在此Assembly中查找服务(如 Did.SersLoader.Demo.dll)(assembly、assemblyFile、assemblyName 指定任一即可) */
+          "assemblyFile": "Did.SersLoader.Demo.dll",
 
-          /* 在此Assembly中查找服务(如 App.StationDemo.Station)(assembly、assemblyFile、assemblyName 指定任一即可) */
-          "assemblyName": "App.WebApi21.Station"
+          /* 在此Assembly中查找服务(如 Did.SersLoader.Demo)(assembly、assemblyFile、assemblyName 指定任一即可) */
+          //"assemblyName": "Did.SersLoader.Demo",
+
+
+          /* 强制指定ApiStation名称。可不指定。(优先级从高到低:  apiStationName_Force 、 在代码上的SsStationNameAttribute特性指定 、 apiStationName 、 appsettings.json指定) */
+          //"apiStationName_Force": "",
+
+          /* ApiStation名称。可不指定。(优先级从高到低:  apiStationName_Force 、 在代码上的SsStationNameAttribute特性指定 、 apiStationName 、 appsettings.json指定) */
+          "apiStationName": "demo"
+
+
+          /* 强制路由前缀,例如:"demo/v1"。可不指定。(优先级从高到低:  routePrefix_Force、在代码上的SsRoutePrefixAttribute特性指定 、 routePrefix) */
+          //"routePrefix_Force": "",
+
+          /* 路由前缀,例如:"demo/v1"。可不指定。(优先级从高到低:  routePrefix_Force、在代码上的SsRoutePrefixAttribute特性指定 、 routePrefix ) */
+          //"routePrefix": ""
         }
-      ]
+      ],
+
 
+      //调用api前的事件,可不指定
+      "//BeforeCallApi": [
+        {
+          //Bearer 在调用接口前,会获取 rpcData.http.headers.Authorization(格式为 "Bearer xxxxxx"),并作为参数调用接口api_verifyAt,把返回数据放到 rpcData.user.userInfo
+          "className": "Bearer",
+          /* 验证at接口的地址 */
+          "api_verifyAt": "/AuthCenter/account/verifyAt",
+          /* 验证at接口的httpMethod。(如 GET POST 可不指定) */
+          "api_httpMethod": "POST"
+        },
 
+        {
+          //AccountInCookie 在调用接口前,会获取 rpcData.http.headers.Cookie(格式为 "user=xxx;c=7")中的user,在账号列表中比对userToken,回写 CallerSource(rpcData.caller.source) 和 userInfo(rpcData.user.userInfo)
+          "className": "AccountInCookie",
+          "account": [
+            {
+              "userToken": "admin_123456",
+              //"CallerSource": "Internal",
+              "userInfo": {
+                "name": "超级管理员",
+                "入口": "Gover网关"
+              }
+            }
+          ]
+        }
+      ]
     },
 
 
     /* ServiceStation配置,可不指定 */
     "ServiceStation": {
 
+      /* 自动上报cpu Usage。不指定则不上报 */
+      "//UsageReporter": {
+        /* 上报时间间隔(单位:秒) */
+        "intervalSecond": 2
+      },
+
+
+      /* 服务中心注册配置。在向服务中心注册站点前 是否打印(Logger.Info)请求参数。默认:false */
+      "StationRegist_PrintRegistArg": false,
+
+
       /* serviceStation站点信息 */
       "serviceStationInfo": {
-        "serviceStationName": "WebApi21"
+        "serviceStationName": "SerslotDemo",
+
+        /* 服务站点版本信息,若不指定则为入口链接库的版本号 */
+        //"stationVersion": "1.1.9.0",
+
+        /* [json]服务站点额外信息,可不指定 */
+        "info": null
       }
     }
   },
@@ -79,8 +168,47 @@
     "Logger": {
       /* print the log to console. default:false  */
       "PrintToConsole": true
+    },
+
+
+    /* 序列化配置,可不指定 */
+    "Serialization": {
+      /* 序列化字符编码。可不指定,默认 UTF8。只可为 UTF7,UTF8,UTF32,ASCII,Unicode。 */
+      "Encoding": "UTF8",
+
+      /* 时间序列化格式。可不指定,默认 "yyyy-MM-dd HH:mm:ss" */
+      "DateTimeFormat": "yyyy-MM-dd HH:mm:ss"
     }
-  }
+  },
+
 
+  "serslot": {
 
+    /* 额外api。SsApiDesc格式。除了系统api外,可以指定额外api。若指定返回数据(reply),则直接返回数据;若不指定返回数据,则由host进行处理 */
+    "//extApi": [
+      { //为 SsApiDesc格式
+        "description": "首页",
+        //路由(可为泛接口,如 "/a/*" )
+        "route": "/index.html",
+        //扩展配置(json)
+        "extendConfig": {
+          //请求方式,若不指定则默认支持所有方式(demo: POST、GET、DELETE、PUT等)
+          "httpMethod": "GET",
+
+          //返回数据(可为数值、字符串、对象、数组)。若不指定,则由host进行处理
+          "reply": { "hello": "sers" },
+
+          //系统生成的接口文字描述
+          "sysDesc": "method:GET"
+        }
+      },
+      {
+        //路由(可为泛接口,如 "/a/*" )
+        "route": "/*"
+      }
+
+    ]
+
+
+  }
 }

+ 1 - 1
dotnet/Vit/Vit.Core/Vit.Core/Util/ComponentModel/Api/SsRouteAttribute.cs

@@ -5,7 +5,7 @@ namespace Vit.Core.Util.ComponentModel.Api
     /// <summary>
     /// <para>可同时指定多个。                                                                                     </para>
     /// <para>若以"/"开始则为绝对路径(忽略SsStationName和SsRoutePrefix,如 /demo/v1/api/1/route/3)               </para>
-    /// <para>若以"/*"结尾则代表接口,可处理所有路由前缀相同的请求,如 1/route/4/* 会处理请求 1/route/4/a.html   </para>
+    /// <para>若以"/*"结尾则代表接口,可处理所有路由前缀相同的请求,如 1/route/4/* 会处理请求 1/route/4/a.html   </para>
     /// <para>demo "api/1/route/3"                                                                                 </para>
     /// </summary>
     [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]

+ 1 - 1
dotnet/Vit/Vit.Core/Vit.Core/Vit.Core.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Vit/Vit.Ioc/Vit.Ioc/Vit.Ioc.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Vit/Vit.Net.Http.FormFile/Vit.Net.Http.FormFile.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/Vit/Vit.WebHost/Vit.WebHost.csproj

@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/netcore/Gateway/App.Gateway/App.Gateway.csproj

@@ -3,7 +3,7 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <TargetFramework>netcoreapp2.1</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/netcore/ServiceCenter/App.Gover.Gateway/App.Gover.Gateway.csproj

@@ -3,7 +3,7 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <TargetFramework>netcoreapp2.1</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/netcore/ServiceCenter/App.ServiceCenter/App.ServiceCenter.csproj

@@ -3,7 +3,7 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <TargetFramework>netcoreapp2.1</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 13 - 11
dotnet/netcore/ServiceCenter/App.ServiceCenter/appsettings.json

@@ -140,6 +140,9 @@
       /* 后台服务的线程个数(单位个,默认0,代表不开启服务)*/
       "workThreadCount": 1,
 
+      /* 超时时间,若不指定则后台任务永不超时。(主动关闭超过此时间的任务,实际任务强制关闭的时间会在1倍超时时间到2倍超时时间内)。单位:ms。*/
+      //"timeout_ms": 10000,
+
 
       /* 是否 输出本地Api的调用信息到(ApiTrace)Log文件。默认:false */
       "PrintTrace": false,
@@ -161,7 +164,7 @@
 
 
       /* 默认站点名称,可多个,可不指定 */
-      //"apiStationNames": [ "StationDemo" ],
+      //"apiStationNames": [ "demo" ],
 
       /* Api加载器配置 */
       "//ApiLoaders": [
@@ -173,19 +176,18 @@
 
 
           //(通过反射从此包中获取要加载的api)
-          /* 在此Assembly中查找服务(如 App.StationDemo.Station.dll)(assembly、assemblyFile、assemblyName 指定任一即可) */
-          "assemblyFile": "App.StationDemo.Station.dll",
-
-          /* 在此Assembly中查找服务(如 App.StationDemo.Station)(assembly、assemblyFile、assemblyName 指定任一即可) */
-          //"assemblyName": "App.StationDemo.Station",
+          /* 在此Assembly中查找服务(如 Did.SersLoader.Demo.dll)(assembly、assemblyFile、assemblyName 指定任一即可) */
+          "assemblyFile": "Did.SersLoader.Demo.dll",
 
+          /* 在此Assembly中查找服务(如 Did.SersLoader.Demo)(assembly、assemblyFile、assemblyName 指定任一即可) */
+          //"assemblyName": "Did.SersLoader.Demo",
 
 
           /* 强制指定ApiStation名称。可不指定。(优先级从高到低:  apiStationName_Force 、 在代码上的SsStationNameAttribute特性指定 、 apiStationName 、 appsettings.json指定) */
           //"apiStationName_Force": "",
 
           /* ApiStation名称。可不指定。(优先级从高到低:  apiStationName_Force 、 在代码上的SsStationNameAttribute特性指定 、 apiStationName 、 appsettings.json指定) */
-          "apiStationName": "StationDemo"
+          "apiStationName": "demo"
 
 
           /* 强制路由前缀,例如:"demo/v1"。可不指定。(优先级从高到低:  routePrefix_Force、在代码上的SsRoutePrefixAttribute特性指定 、 routePrefix) */
@@ -194,19 +196,18 @@
           /* 路由前缀,例如:"demo/v1"。可不指定。(优先级从高到低:  routePrefix_Force、在代码上的SsRoutePrefixAttribute特性指定 、 routePrefix ) */
           //"routePrefix": ""
         }
-
-
       ],
 
 
-
       //调用api前的事件,可不指定
       "//BeforeCallApi": [
         {
           //Bearer 在调用接口前,会获取 rpcData.http.headers.Authorization(格式为 "Bearer xxxxxx"),并作为参数调用接口api_verifyAt,把返回数据放到 rpcData.user.userInfo
           "className": "Bearer",
           /* 验证at接口的地址 */
-          "api_verifyAt": "/AuthCenter/account/verifyAt"
+          "api_verifyAt": "/AuthCenter/account/verifyAt",
+          /* 验证at接口的httpMethod。(如 GET POST 可不指定) */
+          "api_httpMethod": "POST"
         },
 
         {
@@ -237,6 +238,7 @@
         "intervalSecond": 2
       },
 
+
       /* serviceStation站点信息 */
       "serviceStationInfo": {
         /* 服务站点名称 */

+ 1 - 1
dotnet/netcore/Station/App.Ioc.Station/App.Ioc.Station.csproj

@@ -3,7 +3,7 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <TargetFramework>netcoreapp2.1</TargetFramework>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>
 

+ 1 - 1
dotnet/netcore/Station/App.Robot.Station/App.Robot.Station.csproj

@@ -4,7 +4,7 @@
     <OutputType>Exe</OutputType>
     <TargetFramework>netcoreapp2.1</TargetFramework>
     <RunPostBuildEvent>Always</RunPostBuildEvent>
-    <Version>2.1.1.297</Version>
+    <Version>2.1.1.299</Version>
     <Description>https://github.com/sersms/Sers/tree/2.1.1/release</Description>
   </PropertyGroup>