// Token: 0x0600071D RID: 1821 RVA: 0x00037CBC File Offset: 0x00035EBC private void DownloadAllAttachments(Item item, HttpContext httpContext, UserContext userContext) { BlockStatus itemBlockStatus = AttachmentUtility.GetItemBlockStatus(item); string subject = this.GetSubject(item); ArrayList attachmentListForZip = AttachmentUtility.GetAttachmentListForZip(item, true, userContext); if (attachmentListForZip == null || attachmentListForZip.Count == 0) { ExTraceGlobals.AttachmentHandlingTracer.TraceDebug((long)this.GetHashCode(), "AttachmentHandler.DownloadAllAttachments: No attachments returned for item"); return; } ZipFileAttachments zipFileAttachments = new ZipFileAttachments(itemBlockStatus, subject); foreach (object obj in attachmentListForZip) { AttachmentWellInfo attachmentWellInfo = (AttachmentWellInfo)obj; zipFileAttachments.AddAttachmentToZip(attachmentWellInfo, userContext, httpContext); } zipFileAttachments.WriteArchive(httpContext); }