소스 검색

打开测试队列

lcl 2 달 전
부모
커밋
6f66895777
3개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      AppStart/StartHelper.cs
  2. 1 1
      Startup.cs
  3. 3 3
      Util/Queue/PosPushHelper.cs

+ 1 - 1
AppStart/StartHelper.cs

@@ -25,7 +25,7 @@
             else
             {
                 PosPushHelper.Instance.Start(); //推送机具数据
-                // PosPushHelper.Instance.StartTest(); //推送机具数据
+                PosPushHelper.Instance.StartTest(); //推送机具数据
             }
         }
     }

+ 1 - 1
Startup.cs

@@ -61,7 +61,7 @@ namespace MySystem
 
             MySystemLib.SystemPublicFuction.appcheck = "success";
             RedisDbconn.csredis = new CSRedis.CSRedisClient(Configuration["Setting:RedisConnStr"]);
-            // RedisDbconnTest.csredis = new CSRedis.CSRedisClient(Configuration["Setting:RedisConnStrTest"]);
+            RedisDbconnTest.csredis = new CSRedis.CSRedisClient(Configuration["Setting:RedisConnStrTest"]);
         }
 
         // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

+ 3 - 3
Util/Queue/PosPushHelper.cs

@@ -51,9 +51,9 @@ namespace MySystem
 
         public void StartTest()//启动
         {
-            // Thread thread = new Thread(threadStartTest);
-            // thread.IsBackground = true;
-            // thread.Start();
+            Thread thread = new Thread(threadStartTest);
+            thread.IsBackground = true;
+            thread.Start();
         }
 
         private void threadStartTest()