随笔分类 -  201310

[Window Store app]DownloadOperation,回调操作状态异常? 表象解决方案
摘要:创建下载 :download = downloader.CreateDownload(source, destinationFile);Progress progressCallback = new Progress(DownloadProgress);cts = new CancellationTokenSource();download.StartAsync().AsTask(cts.Token, progressCallback); 正常回调:private void DownloadProgress(DownloadOperation download){ if (downlo... 阅读全文
posted @ 2013-10-17 16:10 纵横九洲 阅读(285) 评论(0) 推荐(0)
[windows Store app] stream does not support seek opeartions solve solution
摘要:stream does not support seek operationsWhen I use HttpWebResponse.GetResponseStream(); the stream does't support seekso try to transfers to MemoryStream1 using (Stream Result = request.HttpWebResponse.GetResponseStream())2 {3 MemoryStream streamResult = new MemoryStream();4 byte[] buf = new ... 阅读全文
posted @ 2013-10-12 10:05 纵横九洲 阅读(507) 评论(0) 推荐(0)