Ejemplo n.º 1
0
        public TorrentInfoCollection GetTorrentInfo(TorrentSearchOption option)
        {
            IAsyncResult asyncResult = this.BeginGetTorrentInfo(option, null);

            asyncResult.AsyncWaitHandle.WaitOne();
            return(this.EndGetTorrentInfo(asyncResult));
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
 public TorrentInfoCollection GetTorrentInfo(TorrentSearchOption option)
 {
     IAsyncResult asyncResult = this.BeginGetTorrentInfo(option, null);
     asyncResult.AsyncWaitHandle.WaitOne();
     return this.EndGetTorrentInfo(asyncResult);
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
 public IAsyncResult BeginGetTorrentInfo(TorrentSearchOption option, AsyncCallback callBack)
 {
     return this.BeginGetTorrentInfo(option, callBack, null);
 }
Ejemplo n.º 6
0
 public IAsyncResult BeginGetTorrentInfo(TorrentSearchOption option, AsyncCallback callBack)
 {
     return(this.BeginGetTorrentInfo(option, callBack, null));
 }