lith hace 4 años
padre
commit
fa8018227d

+ 3 - 1
dotnet/Doc/PublishFile/Sers单体压测/ServiceCenter/appsettings.json

@@ -28,9 +28,11 @@
         {
           // Socket.Iocp
           /* (x.1) type - Iocp */
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeServerBuilder",
 
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
+          //"mode": "Timer",
 
           /* (x.2) conn config */
           /* 服务端 监听地址。若不指定则监听所有网卡。例如: "127.0.0.1"、"sers.com"。*/

+ 1 - 1
dotnet/Gateway/App.Gateway/appsettings.json

@@ -10,7 +10,7 @@
           /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
           /* (x.2) conn config */

+ 3 - 3
dotnet/Library/Sers/Sers.CL/Socket/Sers.CL.Socket.Iocp/OrganizeClientBuilder.cs

@@ -24,7 +24,8 @@ namespace Sers.CL.Socket.Iocp
 
             switch (mode)
             {
-                case "Simple":
+                default:
+                //case "Simple":
                     {
                         var delivery = new Mode.Simple.DeliveryClient();
 
@@ -71,8 +72,7 @@ namespace Sers.CL.Socket.Iocp
                         organizeList.Add(new OrganizeClient(delivery, config));
                     }
                     break;
-                //case "SpinWait":
-                default:
+                case "SpinWait":           
                     {
                         var delivery = new Mode.SpinWait.DeliveryClient();
 

+ 4 - 5
dotnet/Library/Sers/Sers.CL/Socket/Sers.CL.Socket.Iocp/OrganizeServerBuilder.cs

@@ -24,7 +24,8 @@ namespace Sers.CL.Socket.Iocp
 
             switch (mode)
             {
-                case "Simple":
+                default:
+                //case "Simple":
                     {
                         var delivery = new Mode.Simple.DeliveryServer();
 
@@ -41,8 +42,7 @@ namespace Sers.CL.Socket.Iocp
                         organizeList.Add(new OrganizeServer(delivery, config));
                     }
                     break;
-                //case "Timer":
-                default:
+                case "Timer":              
                     {
                         var delivery = new Mode.Timer.DeliveryServer();
 
@@ -70,8 +70,7 @@ namespace Sers.CL.Socket.Iocp
                         organizeList.Add(new OrganizeServer(delivery, config));
                     }
                     break;
-                 case "SpinWait":
-           
+                 case "SpinWait":           
                     {
                         var delivery = new Mode.SpinWait.DeliveryServer();
 

+ 9 - 9
dotnet/Library/Sers/Sers.CL/Test/CommunicationManage/CmClient/appsettings.json

@@ -27,9 +27,9 @@
         {
           // Ipc.NamedPipe
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Ipc.NamedPipe.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Ipc.NamedPipe.OrganizeClientBuilder",
 
 
@@ -48,7 +48,7 @@
           /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
           /* 接收缓存区大小(单位:byte,默认:8192)  */
@@ -88,9 +88,9 @@
         {
           // Zmq.ThreadWait
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.ClrZmq.ThreadWait.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.ClrZmq.ThreadWait.OrganizeClientBuilder",
 
 
@@ -116,9 +116,9 @@
         {
           // Zmq.FullDuplex
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Zmq.FullDuplex.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Zmq.FullDuplex.OrganizeClientBuilder",
 
 
@@ -130,9 +130,9 @@
         {
           // Ipc.SharedMemory
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Ipc.SharedMemory.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Ipc.SharedMemory.OrganizeClientBuilder",
 
 

+ 11 - 11
dotnet/Library/Sers/Sers.CL/Test/CommunicationManage/CmServer/appsettings.json

@@ -27,9 +27,9 @@
         {
           //Ipc.NamedPipe
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Ipc.NamedPipe.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Ipc.NamedPipe.OrganizeServerBuilder",
 
 
@@ -42,10 +42,10 @@
           /* (x.1) type */
           /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Socket.Iocp.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeServerBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
           /* 接收缓存区大小(单位:byte,默认:8192)  */
@@ -69,7 +69,7 @@
           /* (x.1) type - Socket */
           /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Socket.ThreadWait.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Socket.ThreadWait.OrganizeServerBuilder",
 
 
@@ -83,9 +83,9 @@
         {
           // Zmq.ThreadWait
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.ClrZmq.ThreadWait.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.ClrZmq.ThreadWait.OrganizeServerBuilder",
 
 
@@ -112,9 +112,9 @@
         {
           // Zmq.FullDuplex
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Zmq.FullDuplex.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Zmq.FullDuplex.OrganizeServerBuilder",
 
 
@@ -126,9 +126,9 @@
         {
           //Ipc.SharedMemory
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Ipc.SharedMemory.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Ipc.SharedMemory.OrganizeServerBuilder",
 
 

+ 1 - 1
dotnet/Library/Sers/Sers.ServiceStation/Sers.ServiceStation/ServiceStation.cs

@@ -133,7 +133,7 @@ namespace Sers.ServiceStation
             appEventList?.ForEach(ev => ev.BeforeStart());
 
 
-            #region (x.1)CL add Builder for Iocp、ThreadWait
+            #region (x.1)CL add builder for Iocp、ThreadWait
             communicationManage.BeforeBuildOrganize = (configs,  organizeList) => 
             {
                 var builderTypeList = new[] {

+ 1 - 1
dotnet/ServiceCenter/App.Gover.Gateway/appsettings.json

@@ -10,7 +10,7 @@
           /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
           /* (x.2) conn config */

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

@@ -50,9 +50,9 @@
         {
           //Ipc.NamedPipe
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Ipc.NamedPipe.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Ipc.NamedPipe.OrganizeServerBuilder",
 
 
@@ -63,10 +63,10 @@
         {
           // Socket.Iocp
           /* (x.1) type - Iocp */
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeServerBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
           /* 接收缓存区大小(单位:byte,默认:8192)  */
@@ -89,7 +89,7 @@
         {
           // Socket.ThreadWait
           /* (x.1) type - Socket */
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Socket.ThreadWait.OrganizeServerBuilder",
 
 
@@ -103,9 +103,9 @@
         {
           // Zmq.ThreadWait
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.ClrZmq.ThreadWait.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.ClrZmq.ThreadWait.OrganizeServerBuilder",
 
 
@@ -130,9 +130,9 @@
         {
           // Zmq.FullDuplex
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Zmq.FullDuplex.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Zmq.FullDuplex.OrganizeServerBuilder",
 
           /* (x.2) config */
@@ -144,9 +144,9 @@
         {
           //Ipc.SharedMemory
           /* (x.1) type - Ipc.SharedMemory */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Ipc.SharedMemory.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Ipc.SharedMemory.OrganizeServerBuilder",
 
 
@@ -160,9 +160,9 @@
         },
         {
           /* (x.1) type - Ipc.SharedMemory */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Ipc.SharedMemory.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Ipc.SharedMemory.OrganizeServerBuilder",
 
           /* (x.2) config */

+ 2 - 2
dotnet/ServiceCenter/Sers.ServiceCenter/Sers.ServiceCenter/ServiceCenter.cs

@@ -137,9 +137,9 @@ namespace Sers.ServiceCenter
 
             //(x.0) appEvent BeforeStart
             appEventList?.ForEach(ev=>ev.BeforeStart());
-         
 
-            #region (x.1)CL add Builder for Iocp、ThreadWait            
+
+            #region (x.1)CL add builder for Iocp、ThreadWait            
             communicationManage.BeforeBuildOrganize = (JObject[] configs, List<IOrganizeServer> organizeList) =>
             {
                 var builderTypeList = new[] {

+ 9 - 9
dotnet/ServiceStation/Demo/SersLoader/Did.SersLoader.Demo/appsettings.json

@@ -50,9 +50,9 @@
         {
           // Ipc.NamedPipe
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Ipc.NamedPipe.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Ipc.NamedPipe.OrganizeClientBuilder",
 
 
@@ -71,7 +71,7 @@
           /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
           /* 接收缓存区大小(单位:byte,默认:8192)  */
@@ -108,9 +108,9 @@
         {
           // Zmq.ThreadWait
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.ClrZmq.ThreadWait.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.ClrZmq.ThreadWait.OrganizeClientBuilder",
 
 
@@ -137,9 +137,9 @@
         {
           // Zmq.FullDuplex
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Zmq.FullDuplex.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Zmq.FullDuplex.OrganizeClientBuilder",
 
 
@@ -151,9 +151,9 @@
         {
           // Ipc.SharedMemory
           /* (x.1) type - Ipc.SharedMemory */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Ipc.SharedMemory.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Ipc.SharedMemory.OrganizeClientBuilder",
 
 

+ 1 - 1
dotnet/ServiceStation/Demo/SersLoader/Did.SersLoader.HelloWorld/appsettings.json

@@ -10,7 +10,7 @@
           /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
           /* (x.2) conn config */

+ 1 - 1
dotnet/ServiceStation/Demo/Serslot/Did.Serslot.Demo/appsettings.json

@@ -25,7 +25,7 @@
           /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
           /* (x.2) conn config */

+ 1 - 1
dotnet/ServiceStation/Demo/Serslot/Did.Serslot.HelloWorld/Doc/Serslot之HelloWorld.md

@@ -65,7 +65,7 @@ namespace SerslotDemo
           /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
           /* (x.2) conn config */

+ 1 - 1
dotnet/ServiceStation/Demo/Serslot/Did.Serslot.HelloWorld/appsettings.json

@@ -10,7 +10,7 @@
           /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
           /* (x.2) conn config */

+ 1 - 1
dotnet/ServiceStation/Demo/Serslot/Did.Serslot.HelloWorld60/appsettings.json

@@ -10,7 +10,7 @@
           /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
           /* (x.2) conn config */

+ 9 - 9
dotnet/ServiceStation/Demo/StressTest/App.Robot.Station/appsettings.json

@@ -39,9 +39,9 @@
         {
           // Ipc.NamedPipe
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Ipc.NamedPipe.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Ipc.NamedPipe.OrganizeClientBuilder",
 
 
@@ -60,7 +60,7 @@
           /* the class of builder in assemblyFile  */
           "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
 
-          /* 通信模式。可为 "Simple"   "Timer"   "SpinWait"(默认)  */
+          /* 通信模式(默认值:Simple)。可为 Simple、Timer、SpinWait  */
           //"mode": "Timer",
 
 
@@ -87,9 +87,9 @@
         {
           // Zmq.ThreadWait
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.ClrZmq.ThreadWait.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.ClrZmq.ThreadWait.OrganizeClientBuilder",
 
 
@@ -116,9 +116,9 @@
         {
           // Zmq.FullDuplex
           /* (x.1) type */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Zmq.FullDuplex.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Zmq.FullDuplex.OrganizeClientBuilder",
 
 
@@ -130,9 +130,9 @@
         {
           // Ipc.SharedMemory
           /* (x.1) type - Ipc.SharedMemory */
-          /* 在此Assembly中查找Builder */
+          /* 在此Assembly中查找builder */
           "assemblyFile": "Sers.CL.Ipc.SharedMemory.dll",
-          /* the class of Builder in assemblyFile  */
+          /* the class of builder in assemblyFile  */
           //"className": "Sers.CL.Ipc.SharedMemory.OrganizeClientBuilder",