@@ -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);
+ }
+
}
@@ -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);