Example #1
0
        public ServerInfo GetCurrentServer()
        {
            byte[] currentServer = new byte[1024 * 1024];
            long   length        = 0;

            GalileoFunctions.GetCurrentServer(instance, currentServer, ref length);
            string currentServerJsonString = Encoding.UTF8.GetString(currentServer, 0, (int)length);

            return(JsonConvert.DeserializeObject <ServerInfo>(currentServerJsonString));
        }