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")); }
static void WsaDisposed(object sender, EventArgs e) { _wsa = null; }
private static void WsaDisposed(object sender, EventArgs e) => _wsa = null;