/// <summary>
        /// Pings the server, checking for activity
        /// </summary>
        /// <remarks>Sets the ping type to status(0)</remarks>
        public static bool PingServer(string Url)
        {
            if (string.IsNullOrEmpty(Url))
            {
                return(false);
            }

            IStatus.PingRequestStatusCode ping = AccountServer.PingAccount(Url);
            return(ping == IStatus.PingRequestStatusCode.Ok ? true : false);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Pings the server, checking for activity
 /// </summary>
 private static bool PingServer(string Url)
 {
     IStatus.PingRequestStatusCode ping = AssetDownloader.PingAccount(Url);
     return(ping == IStatus.PingRequestStatusCode.Ok ? true : false);
 }