static void WsaDisposed(object sender, EventArgs e) { _wsa = null; }
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) { Logger.LogExceptionToFile(ex); WebsiteLive = false; } if (WebsiteLive) return r; } return LocRm.GetString("iSpyDown"); }