fly 8 months ago
parent
commit
b0ce94e4ac
1 changed files with 13 additions and 1 deletions
  1. 13 1
      src/WingServer.cs

+ 13 - 1
src/WingServer.cs

@@ -477,10 +477,22 @@ namespace WingCloudServer
             _apiAccessPlugin.Load(_rpcClientPool);
 
             var notValidateLicense = ConfigurationManager.GetParammeter<BoolParameter>("General", "NotValidateLicense").Value;
+            var isResearchEditionService = ConfigurationManager.GetParammeter<BoolParameter>("General", "IsResearchEditionService").Value;
             //InitLicense
             if (!notValidateLicense)
             {
-                ServerLicense.Instance.VerifyLicense(_licensePlugin.DisabledServerRequest);
+                if (isResearchEditionService)
+                {
+                    Task.Run(() =>
+                    {
+                        ServerLicense.Instance.VerifyLicense(_licensePlugin.DisabledServerRequest);
+                    });
+                }
+                else
+                {
+                    ServerLicense.Instance.VerifyLicense(_licensePlugin.DisabledServerRequest);
+                }
+
             }
         }