Exemple #1
0
 public void Search()
 {
     try
     {
         Clear();
         BuildQuery();
         using (var webClient = new WebClient())
         {
             webClient.Headers.Add("Content-Type", "text/html; charset=utf-8");
             RawData = webClient.DownloadString(Query);
         }
         QueryResult = JsonHelper.ConvertJsonStringToExpando((string)RawData);
     }
     catch (WebException webException)
     {
         ServiceException = webException;
     }
     catch (Exception exception)
     {
         ServiceException = exception;
     }
 }