コード例 #1
0
 internal EwfResponse GetResponse()
 {
     return(EwfResponse.Create(
                file.ContentType,
                new EwfResponseBodyCreator(
                    () => {
         var contents = BlobFileOps.SystemProvider.GetFileContents(file.FileId);
         if (forcedImageWidth.Value.HasValue)
         {
             contents = EwlStatics.ResizeImage(contents, forcedImageWidth.Value.Value);
         }
         return contents;
     }),
                fileNameCreator: () => processAsAttachment.Value ? file.FileName : ""));
 }