public GalleryInfoCollection GetGalleryInfo(GalleryTokenCollection collection, int offset, int length) { IAsyncResult asyncResult = this.BeginGetGalleryInfo(collection, offset, length, null); asyncResult.AsyncWaitHandle.WaitOne(); return(this.EndGetGalleryInfo(asyncResult)); }
public IAsyncResult BeginGetGalleryInfo(GalleryTokenCollection collection, int offset, int length, AsyncCallback callBack, object userState) { return(this.BeginGetGalleryInfo(collection.ToJsonArray(offset, length), callBack, userState)); }
public IAsyncResult BeginGetGalleryInfo(GalleryTokenCollection collection, AsyncCallback callBack) { return(this.BeginGetGalleryInfo(collection.ToJsonArray(), callBack, null)); }