Closed sunl158 closed 1 year ago
\Client\Dt.Base\FileList\FileItem.cs internal async Task Download(bool p_priorThumbnail = false, bool p_prompt = true) if (p_priorThumbnail) { // 优先下载缩略图时,先判断是否存在 downloadThumb = await AtFsm.IsFileExists(ID + ThumbPostfix); // 缩略图不存在时,若为视频文件不下载 if (!downloadThumb && FileType != FileItemType.Image) return false; } 在调用服务时,因为服务经常断线,在访问不到时,UWP客户端会崩溃。当然,可以自己增加TryCatch,但是是否与全局的Exection 处理方式有关
\Client\Dt.Base\FileList\FileItem.cs internal async Task Download(bool p_priorThumbnail = false, bool p_prompt = true)
if (p_priorThumbnail)
{
// 优先下载缩略图时,先判断是否存在
downloadThumb = await AtFsm.IsFileExists(ID + ThumbPostfix);
// 缩略图不存在时,若为视频文件不下载
if (!downloadThumb && FileType != FileItemType.Image)
return false;
}
在调用服务时,因为服务经常断线,在访问不到时,UWP客户端会崩溃。当然,可以自己增加TryCatch,但是是否与全局的Exection 处理方式有关