public GalleryTokenCollection GetGalleryTokens(GallerySearchOption options) { IAsyncResult asyncResult = this.BeginGetGalleryTokens(options, null); asyncResult.AsyncWaitHandle.WaitOne(); return(this.EndGetGalleryTokens(asyncResult)); }
public IAsyncResult BeginGetGalleryTokens(GallerySearchOption options, AsyncCallback callBack, object userState) { WebRequest wReq = WebRequest.Create(String.Format("http://exhentai.org/{0}", options.GetParametor())); wReq.Proxy = this.Proxy; wReq.Method = "GET"; wReq.Headers.Set("cookie", this.m_cookie); return(new ApiResult(wReq, ExHentai.KeyGalleryToken, callBack, userState)); }
public GalleryTokenCollection GetGalleryTokens(GallerySearchOption options) { IAsyncResult asyncResult = this.BeginGetGalleryTokens(options, null); asyncResult.AsyncWaitHandle.WaitOne(); return this.EndGetGalleryTokens(asyncResult); }
public IAsyncResult BeginGetGalleryTokens(GallerySearchOption options, AsyncCallback callBack, object userState) { WebRequest wReq = WebRequest.Create(String.Format("http://exhentai.org/{0}", options.GetParametor())); wReq.Proxy = this.Proxy; wReq.Method = "GET"; wReq.Headers.Set("cookie", this.m_cookie); return new ApiResult(wReq, ExHentai.KeyGalleryToken, callBack, userState); }
public IAsyncResult BeginGetGalleryTokens(GallerySearchOption options, AsyncCallback callBack) { return this.BeginGetGalleryTokens(options, callBack, null); }
public IAsyncResult BeginGetGalleryTokens(GallerySearchOption options, AsyncCallback callBack) { return(this.BeginGetGalleryTokens(options, callBack, null)); }