public TorrentInfoCollection GetTorrentInfo(TorrentSearchOption option) { IAsyncResult asyncResult = this.BeginGetTorrentInfo(option, null); asyncResult.AsyncWaitHandle.WaitOne(); return(this.EndGetTorrentInfo(asyncResult)); }
public IAsyncResult BeginGetTorrentInfo(TorrentSearchOption option, AsyncCallback callBack, object userState) { WebRequest wReq = WebRequest.Create(option.GetUrl()); wReq.Proxy = this.Proxy; wReq.Method = "GET"; wReq.Headers.Set("cookie", this.m_cookie); return(new ApiResult(wReq, ExHentai.KeyTorrentInfo, callBack, userState)); }
public TorrentInfoCollection GetTorrentInfo(TorrentSearchOption option) { IAsyncResult asyncResult = this.BeginGetTorrentInfo(option, null); asyncResult.AsyncWaitHandle.WaitOne(); return this.EndGetTorrentInfo(asyncResult); }
public IAsyncResult BeginGetTorrentInfo(TorrentSearchOption option, AsyncCallback callBack, object userState) { WebRequest wReq = WebRequest.Create(option.GetUrl()); wReq.Proxy = this.Proxy; wReq.Method = "GET"; wReq.Headers.Set("cookie", this.m_cookie); return new ApiResult(wReq, ExHentai.KeyTorrentInfo, callBack, userState); }
public IAsyncResult BeginGetTorrentInfo(TorrentSearchOption option, AsyncCallback callBack) { return this.BeginGetTorrentInfo(option, callBack, null); }
public IAsyncResult BeginGetTorrentInfo(TorrentSearchOption option, AsyncCallback callBack) { return(this.BeginGetTorrentInfo(option, callBack, null)); }