|
|
@@ -3,6 +3,7 @@ using System.Runtime.InteropServices;
|
|
|
using ServiceCenter.Extensions;
|
|
|
using ServiceCenter.Redis;
|
|
|
using ServiceCenter.WebApi;
|
|
|
+using ServiceCenter;
|
|
|
|
|
|
namespace WCS.Service
|
|
|
{
|
|
|
@@ -16,6 +17,8 @@ namespace WCS.Service
|
|
|
|
|
|
#endregion 接入Redis
|
|
|
|
|
|
+ ServiceHub.AddSystemMode(SystemMode.虚拟plc);
|
|
|
+
|
|
|
//互斥锁检测
|
|
|
var mutexName = RedisHub.Default.Check("Mutex") ?? throw new Exception("请在Redis中配置互斥量值");
|
|
|
|
|
|
@@ -67,4 +70,4 @@ namespace WCS.Service
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|