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