public void RenderMailMessage(IMailFolder mailFolder, IMessageSummary messageInfo) { if (!mailFolder.IsOpen) { mailFolder.Open(FolderAccess.ReadWrite); } MailRender mailRender = new MailRender(); mailRender.RenderAsync(mailFolder, messageInfo.UniqueId, messageInfo.Body) .ContinueWith((t) => { UpdateWebBrowser(this, t.Result); }); }
public async Task <string> Render() { MailRender mailRender = new MailRender(); return(await mailRender.RenderAsync(serverFolder, serverMessage.UniqueId, serverMessage.Body)); }