public async Task <IBook> GetBook(IRandomAccessStream stream, string filename) { var book = new BookCompress(); await book.LoadAsync(System.IO.WindowsRuntimeStreamExtensions.AsStream(stream), false, false);//ToDo:Config Support! return(book); }
public async Task <IBook> GetBook(IStorageFile file) { var book = new BookCompress(); await book.LoadAsync(System.IO.WindowsRuntimeStreamExtensions.AsStream(await file.OpenReadAsync()), false, false);//ToDo:Config Support! return(book); }