فهرست منبع

Added prototype reconnect within RPCClientTransport.Send()
Database License check is now based on app version, not db version

frankvandenbos 8 ماه پیش
والد
کامیت
d39f115cbb
2فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 6 1
      InABox.Client.RPC/Transports/RPCClientTransport.cs
  2. 1 1
      InABox.Database/DbFactory.cs

+ 6 - 1
InABox.Client.RPC/Transports/RPCClientTransport.cs

@@ -112,7 +112,12 @@ namespace InABox.Rpc
             where TResult : IRpcCommandResult
         {
             if (!IsConnected())
-                throw new RpcException($"Transport Disconnected: {typeof(TCommand).Name}()", RpcError.DISCONNECTED);
+            {
+                if (!Connect(CancellationToken.None))
+                    throw new RpcException($"Transport Disconnected: {typeof(TCommand).Name}()", RpcError.DISCONNECTED);
+            }
+
+            
         }
 
 

+ 1 - 1
InABox.Database/DbFactory.cs

@@ -299,7 +299,7 @@ public static class DbFactory
     
     public static void AssertLicense()
     {
-        if (VersionNumber.IsDevelopmentVersion)
+        if (String.Equals(CoreUtils.GetVersion(),"???"))
             return;
         
         var result = CheckLicenseValidity(out DateTime expiry);