C# Class HtmlPreviewVisitor, code

Visits a MimeMessage and generates HTML suitable to be rendered by a browser control.
Inheritance: MimeVisitor
Mostra file Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
HtmlPreviewVisitor ( string tempDirectory )

Creates a new HtmlPreviewVisitor.

Protected Methods

Method Description
VisitMessagePart ( MessagePart, entity ) : void
VisitMimePart ( MimePart, entity ) : void
VisitMultipartAlternative ( MultipartAlternative alternative ) : void
VisitMultipartRelated ( MultipartRelated related ) : void
VisitTextPart ( TextPart, entity ) : void
VisitTnefPart ( TnefPart entity ) : void

Private Methods

Method Description
HtmlTagCallback ( HtmlTagContext ctx, HtmlWriter, htmlWriter ) : void
SaveImage ( MimePart, image, string url ) : string
TryGetImage ( string url, MimePart, &image ) : bool

Method Details

HtmlPreviewVisitor() public method

Creates a new HtmlPreviewVisitor.
public HtmlPreviewVisitor ( string tempDirectory )
tempDirectory string A temporary directory used for storing image files.

VisitMessagePart() protected method

protected VisitMessagePart ( MessagePart, entity ) : void
entity MessagePart,
return void

VisitMimePart() protected method

protected VisitMimePart ( MimePart, entity ) : void
entity MimePart,
return void

VisitMultipartAlternative() protected method

protected VisitMultipartAlternative ( MultipartAlternative alternative ) : void
alternative MultipartAlternative
return void

VisitMultipartRelated() protected method

protected VisitMultipartRelated ( MultipartRelated related ) : void
related MultipartRelated
return void

VisitTextPart() protected method

protected VisitTextPart ( TextPart, entity ) : void
entity TextPart,
return void

VisitTnefPart() protected method

protected VisitTnefPart ( TnefPart entity ) : void
entity TnefPart
return void