using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Neo.Afx.Services { /// /// Summary description for EmailViewer /// public class EmailViewer : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ClearHeaders(); context.Response.ClearContent(); var db = new Correspondence.CorrespondenceDatabase(); long messageID; if(Int64.TryParse(context.Request.QueryString["messageID"], out messageID)) { context.Response.Write(db.GetMessageContent(messageID)); } context.Response.Flush(); context.Response.Clear(); } public bool IsReusable { get { return false; } } } }