Beispiel #1
0
        public static string ProductLatestVersion(int productId)
        {
            string r = "";

            if (WebsiteLive)
            {
                try
                {
                    //call the real website...
                    using (var ws = new iSpyAPI())
                    {
                        Debug.WriteLine("WEBSERVICE CALL: ProductLatestVersionGet");
                        r = ws.ProductLatestVersionGet(productId);
                    }
                }
                catch (Exception ex)
                {
                    MainForm.LogExceptionToFile(ex);
                    WebsiteLive = false;
                }
                if (WebsiteLive)
                {
                    return(r);
                }
            }
            return(LocRm.GetString("iSpyDown"));
        }
Beispiel #2
0
 static void WsaDisposed(object sender, EventArgs e)
 {
     _wsa = null;
 }
Beispiel #3
0
 private static void WsaDisposed(object sender, EventArgs e) => _wsa = null;