Explorar el Código

Added #if RPC define check in SelectDatabase.cs to switch between Rest and RPC

frogsoftware hace 2 años
padre
commit
a77bd64380
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      prs.desktop/Utils/SelectDatabase.xaml.cs

+ 4 - 1
prs.desktop/Utils/SelectDatabase.xaml.cs

@@ -147,9 +147,12 @@ namespace PRSDesktop
                                 }
                                 else if (db.DatabaseType == DatabaseType.Networked)
                                 {
-                                    //info = new RpcClientSocketTransport(db.URLs).Info();
+#if RPC
+                                    info = new RpcClientSocketTransport(db.URLs).Info();
+#else
                                     RestClient<User>.Ping(db.URLs, out DatabaseInfo i);
                                     info = i;
+#endif
                                 }
 
                                 UpdateInfo(key, db, info, border, image, dbver);