<%@ WebHandler Language="C#" Class="Handler" %> using System; using System.Web; using System.Text; public class Handler : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text…
目前项目存在页面展示大量图片,效率不高,考虑优化性能,改为ashx+异步下载的方式,废话不说直接贴code: using System; using System.Web; using System.IO; using System.Web.SessionState; using System.Threading.Tasks; public class DownLoadS3FileAsync : System.Web.HttpTaskAsyncHandler { public void Proc…