예제 #1
0
        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);
        }
예제 #2
0
        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);
        }