Пример #1
0
 /// <summary>
 /// 开始下载数据
 /// </summary>
 /// <param name="paras"></param>
 public virtual void DownLoadDatas(params object[] paras)
 {
     Cancel();
     _webClient = new HttpWebClient();
     _webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(_webClient_DownloadStringCompleted);
     _webClient.DownloadStringAsync(CreateUri(paras));
     _timer.Change(TimeOut, Timeout.Infinite);
 }
Пример #2
0
        public void DACSend(string strContent)
        {
            Cancel();
            _clientSend = new HttpWebClient();


            strContent += "&Tick=" + DateTime.Now.Ticks.ToString();
            string encodeContent = Utils.Encode(strContent, "pplive");

            _clientSend.DownloadStringAsync(Utils._DACUrl + encodeContent);
        }
Пример #3
0
        public void DACSend(string strContent)
        {
            Cancel();
            _clientSend = new HttpWebClient();


            strContent += "&Tick=" + DateTime.Now.Ticks.ToString();
            string encodeContent = Utils.Encode(strContent, "pplive");
            _clientSend.DownloadStringAsync(Utils._DACUrl + encodeContent);
        }