/// <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); }
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); }
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); }